ScriptManager does not honour LoadScriptsBeforeUI property when set to false

I am having some performance problems with IE 7, whereby the page pauses during rendering while scripts are loaded, this is at times taking up to 5 seconds and leaves the user with a blank screen while he/she waits.

After a process of elimination I have deduced this is because of the scripts emitted by the asp.net ScriptManager class, by dumping the html and testing the same page with the scripts at the bottom, the problem is resolved (well to the extent that the user experience is greatly improved as the user now has a nicely rendered page to look at rather than a blank screen)

So I want to move the emitted scripts to the bottom of the page and looked at setting ScriptManager.LoadScriptsBeforeUI to false in order to achieve this, unfortunately setting this property to false has no effect on where the script references are rendered in the mark-up.

Has anyone encountered this problem, and can anyone suggest a way around it?

Many thanks

Nick

Answers


I have subsequently discovered that the LoadScriptsBeforeUI property is only relevant for scripts manually added to the script manager. I was including a service reference with scripts manager and expecting this reference to also be rendered at the end of the form. This is not the case.

Nick - thanks for your response I will be taking a look at dynaTrace.


I suggest you grab dynaTrade AJAX Edition. Completely free and specifically for IE. You can get a full timeline and breakdown of what's eating your time or CPU. If it's a hung javascript function, load time on a script...whatever, this will save you loads of time.

Just load dynaTrace, start a session, go to the troublesome url and then analyze the results. The demo video on that page gives you a walk-through.

I've used this to figure out why some things give trouble in IE in my projects, it's been an excellent tool, and the free part doesn't hurt either.


Need Your Help

How to Centre Align Popup in Javascript PhoneGap App

javascript cordova popup alignment

When I call a Popup from another Popup the second Popup doesn't show in the middle of the page. For example in the Code below if you Click on "Bookmark" the next popup opens in the top left region ...

How do I programmatically convert a Keynote file to a PowerPoint?

powerpoint keynote

Anyone know any good tools to convert a keynote file to a PowerPoint one? We have an online tool that currently accepts PPT/PPTX files and we then use Aspose tools to do more with it. But we're ne...