Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any reason why MicrosoftAjax.js is not minified?

I compress my own JS using YuiCompressor, but is there any reason why MicrosoftAjax.js not minified? Or is there some setting to say run the compressed version of it (if there is a compressed version). Or do I need to decompile it and minify the script resource myself?

like image 860
nickytonline Avatar asked Jun 24 '09 13:06

nickytonline


1 Answers

I'm surprised at these misleading answers.

ASP.NET AJAX has always provided both debug and compressed versions of MicrosoftAjax.js. A combination of the web.config's debug setting and ScriptManager's ScriptMode property control which script is referenced.

Additionally, you may use the "retail" setting to force compressed scripts regardless.

like image 98
Dave Ward Avatar answered Oct 21 '22 19:10

Dave Ward