When running the Internet, some scripts in Internet Explorer take a long time to run, at which point Internet Explorer will prompt the user whether or not they wish to continue running the slow script. This is not necessarily an error in itself, although it can indicate a script which isn’t working, but in order to avoid seeing this message, users may wish to increase the amount of time that passes before the message box appears. This will minimise its appearance and make it more likely that when it does it is due to a genuinely errant script rather than merely a slow one.
The on-screen message associated with this script generally reads:
“This page contains a script which is taking an unusually long time to finish. To end this script now, click Cancel.”
Although some versions of Internet Explorer may offer the following error message:
“A script on this page is causing Internet Explorer to run slowly. If it continues to run, your computer may become unresponsive. Do you want to abort the script?”
Microsoft will actually address this problem for you if you contact them directly, however if you prefer to do it yourself then you can follow the process outlined below.
In most versions of Internet Explorer, the time-out value with regard to scripts can be altered by following these steps.
Firstly, it is necessary to download a registry editor, many of which are available for download on the Internet, or there is one available within the Windows software under the registration entry Regedt32.exe. Although this program does not appear in the list of programs on Windows it can be located by simply typing “regedt32.exe” into the Start menu search box.
Before you can use this program effectively, though, you need to know whether you are running a 32-bit or 64-bit version of Windows. If you’re running Windows XP, go to the Start menu and click ‘Run’. Type ‘winver’ into the window and click enter. You should then see in a window the current OS version.
If you’re using Windows 7 or Vista, again go to your Start menu, but type ‘Computer’ into the search utility. Next right click the option which appears, and select ‘Properties’. You should be able to see the required information under the ‘Windows Edition’ section.
The process for Windows 8 is rather similar to that of Windows 7, except that there is, of course, no Start menu in Windows 8. Instead, you will utilise the Start Screen to obtain the requisite information.
Once you have loaded regedt32.exe, go to ‘New’, and then select either ‘new DWORD (32-bit) value’ or ‘new DWORD (64-bit) value’ depending on which is appropriate for your machine, and create a new DWORD value called “MaxScriptStatements”, setting the value to the desired number of script statements. There is guidance on the Internet regarding the ideal number of statements to set this value to, but it is very much dependent on your machine, so some trial and error may be required.