By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,916 Members | 1,336 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,916 IT Pros & Developers. It's quick & easy.

IE: Script is causing Internet Explorer to run slowly & ajax

P: n/a
Hi,

I have a script which after a time shows the following error in IE:
"A script on this page is causing Internet Explorer to run slowly. If
it continues to run, your computer may become unresponsive".

The page is quite complex and uses ajax to post updates to the server,
updating parts of the page based on the response. It uses YUI (event
and dom mainly). There are no infinite loops or similar constructs.

The article here:
http://support.microsoft.com/kb/175500
suggests that it has exceeded the threshold of 5,000,000 operations.

Does anyone know if anything ever resets that threshold without the
user having refreshed the entire page?

Thanks
Mark
Dec 18 '07 #1
Share this Question
Share on Google+
3 Replies


P: n/a
On Dec 18, 10:39 am, mthom...@gmail.com wrote:
Hi,

I have a script which after a time shows the following error in IE:
"A script on this page is causing Internet Explorer to run slowly. If
it continues to run, your computer may become unresponsive".

The page is quite complex and uses ajax to post updates to the server,
updating parts of the page based on the response. It uses YUI (event
and dom mainly). There are no infinite loops or similar constructs.

The article here:http://support.microsoft.com/kb/175500
suggests that it has exceeded the threshold of 5,000,000 operations.

Does anyone know if anything ever resets that threshold without the
user having refreshed the entire page?

Thanks
Mark
Hi Mark,

I have had a similar problem like this in the past. In my case, the
script was hogging the browsers resources to where hardly anything
else could get done. My solution to the problem was to interrupt the
function from time to time with the setTimeout method. I think
something like setTimeout("yourBusyFunction()",0);

And passing it 0 is fine.
Dec 18 '07 #2

P: n/a
On Dec 18, 8:39 am, mthom...@gmail.com wrote:
Hi,

I have a script which after a time shows the following error in IE:
"A script on this page is causing Internet Explorer to run slowly. If
it continues to run, your computer may become unresponsive".

The page is quite complex
What is making it so complex? Do you make a complex calculation? The
Ajax part of your app should not be making it run slowly.

Peter
Dec 18 '07 #3

P: n/a
Hi Doug,

I think in this case it's not long loops that are causing the problem
but exceeding the scripts threshold in IE as the page is quite
complex. I am going to look through the scripts and just make sure
though

Cheers
Mark

On Dec 18, 8:57 pm, Doug Gunnoe <douggun...@gmail.comwrote:
On Dec 18, 10:39 am, mthom...@gmail.com wrote:
Hi,
I have a script which after a time shows the following error in IE:
"A script on this page is causing Internet Explorer to run slowly. If
it continues to run, your computer may become unresponsive".
The page is quite complex and uses ajax to post updates to the server,
updating parts of the page based on the response. It uses YUI (event
and dom mainly). There are no infinite loops or similar constructs.
The article here:http://support.microsoft.com/kb/175500
suggests that it has exceeded the threshold of 5,000,000 operations.
Does anyone know if anything ever resets that threshold without the
user having refreshed the entire page?
Thanks
Mark

Hi Mark,

I have had a similar problem like this in the past. In my case, the
script was hogging the browsers resources to where hardly anything
else could get done. My solution to the problem was to interrupt the
function from time to time with the setTimeout method. I think
something like setTimeout("yourBusyFunction()",0);

And passing it 0 is fine.
Dec 19 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.