ajax - ScriptManager loads multiple java scripts in asp.net ? i need them to be all in one as per YSlow guidelines -
According to Yahoo's guidelines for web site performance, JavaScript should be added to avoid additional http requests, as I saw. YSlow asp.net 3 to 4 scripts for MicrosoftAjax.js, a MicrosoftAjaxForms.js & amp; Some other 2 postback & amp; Client side verification, I want to get these 4 JS in one
There 4
Please tell me how do I get it?
Thank you.
You ScriptManager - CompositeScript Feature ...
This can be used like this:
& asp: ScriptManager runat = "server" id = "ScriptManager1" & gt; & Lt; CompositeScript & gt; & Lt; Script & gt; & Lt; Asp: ScriptReference name = "MicrosoftAjax.js" /> & Lt; Asp: ScriptReference name = "MicrosoftAjaxWebForms.js" /> & Lt; / Script & gt; & Lt; / CompositeScript & gt;
Note that this is an ASP.NET 3.5 feature .. so if you are using at least 3.5, you will have access to it ..