Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Preventing MicrosoftAjaxWebForms.debug.js from loading

I've got an ASP.NET web application, and I'm attempting to reduce HTTP calls to the server, so I'd like to not load things like MicrosoftAjaxWebForms.debug.js and MicrosoftAjax.debug.js.

Script manager is used to form all of my external javascript files into one, and I'm concerned that this is causing other non-related libraries to be loaded.

like image 383
Tim Ferrell Avatar asked Jun 04 '10 13:06

Tim Ferrell


1 Answers

To get rid of the debug versions of the scripts you have to disable debug mode in web.config. Find the element called <compilation debug="true"> under /configuration/system.web and change it to <compilation debug="false">.

like image 56
user649496 Avatar answered Oct 31 '22 15:10

user649496