How to disable IE8 script error message?

Fyber picture Fyber · Mar 14, 2012 · Viewed 14.5k times · Source

I'm using CodedUI on IE8, and get this error message:

     Stop running this script?
     A script on this page is causing your web browser to run slowly.
     If it continues to run, your computer might become unresponsive.

I've read some forums and did the following: Tools > Internet Options > Advanced tab > Browsing

  1. Check the "Disable script debugging (Internet Explorer) checkbox
  2. Check the "Disable script debugging (Other) checkbox
  3. Uncheck the "Display a notification about every script error" checkbox

and this message still appears...

Can anyone assist me here?

Answer

Dampsquid picture Dampsquid · Mar 14, 2012

IE has a registry setting for that

Error message: "A script on this page is causing Internet Explorer to run slowly"

but that requires you so change the registry on each client machine and for each user.

It will however allow you script to run so you can profile it and find out whats causing the delay.

Also look at this SO question How to mimic effects of MaxScriptStatements (i.e. prevent “A script on this page is causing Internet Explorer to run slowly”) without changing the registry?