views:

412

answers:

3
+4  A: 

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?

Jan Zich
that's a great point, and I remember to see that documentation, but I never associate it to my current problem. I will read this again and try to combine the scripts! Thank you so much for this insight view :)
balexandre
A: 

Keep in mind, that when debug mode is enabled (in web.config: <compilation debug="true">), resources such as javascript files, images and CSS files are not cached by the browser.

Therefore, in a production-environment (with debug disabled), these numbers might look different, since the browser will cache most of the resources and not request them again for each page/request.

M4N
Nice point, but I do have all my pages to not allow cache, because of where I'm showing this page (inside a CRM application) so it would be the same... but thank you anyway.
balexandre
A: 

Do you use an UpdatePanel which loads a lot of data? If so, the page won't render until it fetches all the data.

It's possible to extend the UpdatePanel however to show before loading your data - this article describes how to do it (alas, in Dutch, but I believe the comments inside the code were in English)

Ben
"UpdatePanel which loads a lot of data"... it's a little more than that, but I understand what you say, but no, in this page is only WebParts, all ajax related is done by me using jQuery. But thanks anyway.
balexandre