Firefox Unresponsive Script: Increase JavaScript Execution Waiting Time
Firefox 1.5 and above, including Firefox 2.0.x limits the amount of time that a script or Javascript took to run and complete. Whenever a web page takes too long to load, an error will pop up with the following message:
Warning : Unresponsive script
A script on this page may be busy, or it may have stopped responding. You can stop the script now, or you can continue to see if the script will complete.

Users have two option buttons namely Stop Script or Continue. Pressing Continue will likely to make the Firefox browser to remain sluggish or not responding, while Stop Script will inevitably cause part of the website depends on script not functioning properly, such as Java script menu, auto refresh or update of streaming live contents. If you click on Continue, and yet script is still hanging, you will keep getting the Unresponsive Script error dialog again and again once the the preset maximum script running time hit, which is default to 5 seconds in Firefox 1.5 and 10 seconds in Firefox 2.
To get rid of the annoying Unresponsive Script error dialog and fix the behavior of script that takes long execution time in Firefox, we can longer the waiting time for script to run before Firefox intercept it with warning.
- Run Firefox.
- In the Firefox address bar, type about:config, and then press Enter.
- Scroll and locate or search with Filter text box for dom.max_script_run_time.
- Double click on the line of dom.max_script_run_time, and change the value to a higher number (in seconds) that you want Firefox to wait before getting the Unresponsive Script warning. Be default, the value is 5 or 10 seconds. You can safely set the magical number to let’s say 20. You can set the value to 0 to instruct Firefox to wait foever – no warning and dialog whatsoever. Note that the whole Firefox may be not responsive and cannot be used while waiting for scripts to execute, so the number should not set too high in order to give you an opportunity to stop truly nasty or buggy scripts and recover use of Firefox.
- Click OK.
- Restart Firefox.
Related Articles
- Unable to Open Hard or USB Flash Drive with Windows Script Host Cannot Find Script File autorun.vbs Error
- Download Firefox 3.5.1 To Fix JavaScript Vulnerability in Firefox 3.5
- Kill, Terminate or Stop a Windows Unresponsive, Hanged or Frozen Application or Process
- How to Enable TraceMonkey JavaScript Engine in Firefox 3.1 to Speed Up Web Browsing Response Time
- Change (Increase or Decrease) The Number of Recently Closed Tabs or Remembered by Firefox to Reopen or Undo
- Internet Explorer 7 Pop-Up Blocker Blocks Script Generated Drop Down or On Page Input Dialog Boxes
- Bypass and Skip Waiting Time and Clicking Pages on File Hosting Sites (RapidShare, ZShare, DepositFiles) with SkipScreen
- Download AntiFreeze to Recover from System Hang by Terminating Unresponsive Programs
- iPhone 3G and OS 2.0 Bricked with Activation Unknown Error -9838 and -4 or Unavailable (Fix by Waiting)
- Auto Install Script for Notepad2 in Vista to Replace Notepad










































July 11th, 2008 12:22
There’s something that went wrong with Firefox 3 that was fine in FF2, and is causing runaway scripts to happen far more frequently. Not to mention the dialogue itself becoming unresponsive, because a second script (or more!) starts and goes crazy under a second after the dialogue appears.
May 21st, 2008 04:55
I had this problem constantly with Firefox halting on the unresponsive script error. I uninstalled it and installed the 2.0.0.14 version. Once again I got the same error when loading the browser but this time, a window popped up asking me if wanted to update several browser toolbars. I choose not to update, the window disappeared along with the scipt error. Now, it loads normally every time.
I’m just wondering if this update function isn’t causing the same error for others. If so, then disable automatic update alerts.
February 13th, 2008 07:13
Thanks for this!
November 9th, 2007 11:19
tjappie, please refer to English version when in doubt. Thanks.
November 9th, 2007 05:31
dude, your translated pages are total gibberish !!
July 27th, 2007 01:44
There’s more information about the issue at http://kb.mozillazine.org/Unresponsive_Script_Warning