Massive ASP.NET AJAX performance increase with minor effort
Incredible what a speed boost you can get with your ASP.NET AJAX apps by simply adding a few optional parameters. Shockingly faster in a lot of situations!
In your ScriptManager declaration, if you add the following parameters, you should see a very nice performance improvement:
- EnablePartialRendering="true" (Alows just the parts of the page that have changed to be transmitted across the wire.)
- LoadScriptsBeforeUI="false" (Postpones quite a few of the script downloads until after the main page content is finished downloading by adding the script references to the end of the tag.)
- ScriptMode="Release" (Causes AJAX to emit really tight production-ready code. Only drawback to this is when debugging an AJAX issue, you'll need to flip this back to get debug info.)
< asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true" LoadScriptsBeforeUI="false" ScriptMode="Release" />
This site contains copyrighted material the use of which has not always been specifically authorized by the copyright owner. We are making such material available in our efforts to advance understanding of environmental, political, human rights, economic, democracy, scientific, and social justice issues, etc. We believe this constitutes a 'fair use' of any such copyrighted material as provided for in section 107 of the US Copyright Law. In accordance with Title 17 U.S.C. Section 107, the material on this site is distributed without profit to those who have expressed a prior interest in receiving the included information for research and educational purposes. For more information go to: http://www.law.cornell.edu/uscode/17/107.shtml
. If you wish to use copyrighted material from this site for purposes of your own that go beyond 'fair use', you must obtain permission from the copyright owner.