Fix Firefox unresponsive script warnings

Ever since I upgraded to Firefox 1.5, I’ve been getting some unresponsive script warnings on sites that employ heavy Javascript like Gmail or Bloglines. Curious about it, I dug around and managed to find out how to fix the problem.

p=. Firefox unresponsive script dialog

To fix it, you’ll need to access the hidden configuration page in Firefox. Just type about:config in the address bar and you’ll get a page full of hidden configurations which you can tweak till your heart’s delight.

In the ‘Filter’ box, type dom.max_script_run_time. This will narrow the options till only the dom.max_script_run_time option remains. Right-click it and choose Modify. A box pops up. Change the number to something bigger like 20. This is the maximum time a script can run before Firefox considers it ‘unresponsive’.

If you can’t find the string in the about:config page, create it by right-clicking anywhere and then choose New—> Integer and enter dom.max_script_run_time. When prompted for the value, use 20.

So far I’ve not had anymore unresponsive script warnings, so I guessed that fixed that problem! However some extensions may also cause similar problems. Hope this helps.

Credits

Learn more Firefox Secrets, or read this great article at Sitepoint.

Technorati Tags: ,

26 Responses to “Fix Firefox unresponsive script warnings”

  1. Bob Says:

    Thank yoou for the best fix I’ve found for this problem. Very well explained.

  2. mijlee Says:

    I’ve had the same problem, but even when sites don’t have any javaScript running. It usually occurs when the browser is left for a little while.

    Might be a mac problem amd hopefully this fix will sort it :)

  3. David Says:

    mijlee, actually Firefox has a problem with how it handles memory. it slowly eats up more and more memory till it becomes unresponsive. i think that’s what you’re experiencing. the simplest way is to restart Firefox every once in a while. the session saver extension may come in handy here.

  4. Jorge Gómez Jiménez Says:

    Thank you, this is a really useful tip. That ‘unresponsive’ warning is so disagreeable…

  5. seth godin Says:

    this made me feel smart!

    very few things online make me feel smart. Thanks so much.

  6. maria Says:

    Using Firefox, had Unresponsive Script popping up when on Yahoo site. Your suggestion seems to solve the problem. Many thanks. I just wonder why Firefox memory-use increases from say 26K to over 120K while having open several web sites. To release the RAM I use Free RAM XP Pro, a fee to download, and it does the job releasing memory before the system crushes.

  7. Jek Says:

    See this link https://bugzilla.mozilla.org/show_bug.cgi?id=405375 for a description of the bug for Firefox. Note that this works fine in Internet Explorer.

  8. Kathy Says:

    Thanks. It worked.

  9. Marty Says:

    Thanks - this worked.

  10. Don Says:

    Brilliant! Thank you, thank you, thank you.

  11. Jane Says:

    I have this error message come up every single time after I use my printer an then try to load AOL mail. I have to quit Firefox and restart. If I am doing something other than viewing my mail, the entire Firefox application just slows down to a crawl, even typing is slooooooooooow and I have to restart.

  12. Debbie Says:

    My firefox browser opens and then closes really fast. I have tried restoring, deleting firefox and reinstalling. If you can help thanks in advance, Debbie

  13. Annoyed by Firefox Unresponsive Script | Robin Malau - Rockstar Turns Internet Geek Says:

    […] I did a Google search and found some troubleshooting from beautiful people (here and […]

  14. Stacy Says:

    Thank you!! This has been driving me buggy for months!

  15. Amply Says:

    Thanks a lot!

  16. Vicki Says:

    Yea! Thanks a million!

  17. Netty Gritty Says:

    thanks,
    just when i was going insane, you saved me! :D

  18. Netty Gritty Says:

    oops,
    it didn’t stop! :(
    ff behaved well for a while, but now the problem is back! what so you suggest i should do?

  19. Drac Says:

    I used your ideas to fix it, but i’m still getting an unresponsive script on one website.

  20. jacey Says:

    thank you so much! this was really annoying me, but hopefully it will stop now! And your directions were very clear and precise, thanks again!

  21. 凍仁翔 Says:

    Thank your share, I have solved the bug with the post. ^^

  22. krissss Says:

    very well explained, grazie!

  23. Nidhi Says:

    Very helpful .. thank you ..

  24. tim Says:

    sadly, this fix did not work for me.

  25. Elizabeth Says:

    Have the opposite problem. YouTube put a script on my computer that completely shut it down for over an hour; my Firefox was inoperable. I had to force quit it. This happens a lot, when my computer is hijacked by various sites who try to force information on me. I have no choice but to wait until their script or whatever it is stops loading. I want something that gives me control and allows ME to stop scripts! Firefox’s unresponsive script warning only stops some scripts, not all of them!

  26. Walt Says:

    this is a different probly id like help with, i cant seem to find anything anywhere but my firefox does not load any pages, it says failted to connect like if my internet were down but i can use internet explorer and everyting else that uses internet, any help please?

Leave a Reply