I have a (big) problem that all of you that work with Webforms might have.
The problem is the time to load a page.
Using localhost (witch should be the fastest mode) in Vista (IIS 7) I get this graph
alt text http://www.balexandre.com/temp/2009-06-29_1302_soquestion.png
as you can see, it takes more than 17 seconds to show the page!!! and only 2 seconds to load the page it self…
I’m using the ASP.NET AJAX framework to work with Web Parts.
How can I reduce this 17 seconds?
Any idea on where to go is greatly appreciated 🙂
Added: Test for correct answer from Jan Zich
I tested changing
<asp:ScriptManager ID="sm" runat="server" />
into
<ajax:ToolkitScriptManager ID="sm" runat="server" CombineScripts="true" />
and the result using FireBug is impressive (half of the time, and not using the cache!) as you can see in the image below
alt text http://www.balexandre.com/temp/2009-06-29_1543_soquestion.png
and with CSS and jQuery files cached, drops to half of it!
alt text http://www.balexandre.com/temp/2009-06-29_1550_soquestion.png
This won’t count as a valid answer because I don’t know how to actually fix that, but the problem is that most browsers (besides Safari and Chrome perhaps) load JavaScript sequentially because it’s necessary to wait for the previous script to finish executing (as it may change the document). This is typically fixed by combining all JavaScript files into one.
Edit: Related question: How do I combine WebResource.axd and ScriptResource.axd files so as to result in less requests to my ASP.NET server?. Also, I cannot see what scripts you are actually including from the screenshot, but most likely it’s your custom scripts. Is there a way in your application to combine them in some way?