Question

I'm currently using the CompositeScript feature of System.Web.Extensions in order to combine my JavaScript files to reduce download time. However, by including any script manager, the MicrosoftAjax JavaScript code is included in my pages. I do not want this to happen as it adds a lot of unneeded code and it complicates event handling.

I'm looking for one of the following:

  1. An alternative to the Microsoft Script Manager that combines JavaScript files, does not include MicrosoftAjax, and still allows user controls to add scripts to the composite script.
  2. A way to persuade Microsoft's Script Manager to not emit any JavaScript that I don't specify.

OTHER TIPS

Its basically just a static string builder class with a few formatting functions, shouldn't be too hard to write your own script manager class if there is no way to stop it from emitting the ajax framework script.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top