views:

24

answers:

1

Only in IE I get a warning when loading my site containing javascript saying that its causing the page to run slowly (and asking if I want to stop it).

I've seen other posts about this and I've looked for any long running code or infinite loops etc. The weird thing is, when I select 'No' (to not terminate the script) the page immediately loads properly. Its almost like this warning comes up right before the page is done loading. Has anybody experienced this, or know why this might be happening?

A: 

IE has its own way of making your life impossible.

Just deactivate the warning, you can further research in the future if that's necessary.

This article might help you determine why IE is giving such a warning.

Regards,

StudiousJoseph
how do I deactivate the warning? I remember seeing something about using a registery setting to disable it on your machine. But how could I disable it for anybody accessign the site?
aeq
StudiousJoseph
that is for turning it off on your browser..not for disabling it from ever happening on any client. I think I should probably get to the source of the warning rather than disabling it. Thanks though.
aeq
There is no "turn off" switch to get rid of this message programmatically, as the article explains, every browser has its own way of determining when a given script is taking too long to execute. In the case of IE, it uses the number of JS statements executed, so, you might want to check and refactor your code, probably is doing too much. If you find a way to disabling this transparently in all browsers I'll be glad to know how you did it. You're Welcome :)
StudiousJoseph