One Solution For Facebook Unresponsive Scripts In Firefox
Okay, truth is that this script issue does not only affect Firefox, but its the only one I’ve had to troubleshoot it with (Its my primary browser) so I wanted to share a solution I found to fix the Facebook Unresponsive Script warning.
I’d had it before and cleared it a long time ago and it returned recently out of the blue. I see more of it when I’m using the groups so I think *for me* its a script in the group ajax auto-refresh that is hanging but I’ve heard varied reports.
Firefox limits the amount of time that any website script can run and certain things cause some scripts to get sluggish.
Firefox will start frequently throwing an error that reads similar to “Warning : Unresponsive script” when this is the issue you are dealing with. The choices in the popup give you the option to either stop the script or continue, both of which leave the browser semi-non-responsive and likely to throw the error again in a few minutes.
This gets aggravating real fast!
Here’s a work-around to get it sort out the Firefox/Facebook Unresponsive Script! (Thank you to Lee Dodds from his FB Group for this solution)
What we need to do is extend the “allowed” time that Firefox will let a script run before assuming it is misbehaving.
Steps to Fix Facebook Unresponsive Script Freezing Firefox
1. Run Firefox.
2. In the Firefox address/bar, type about:config, and then press Enter. (Do not type http in front of that)
3. Either scroll down to find or use the search filter to locate: Scroll and locate dom.max_script_run_time
4. 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. By 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. [I have set mine to 20]
5. Click OK.
6. Restart Firefox.
Thoughts on fixing the Firefox/Facebook unresponsive script problem
Someone in that group indicated that they thought doing this made facebook load a little slower but they did not feel it was really problematic. I have not observed a slower loadtime. The script was hanging every two seconds for me and had made my browser unusable and unstable and crash-happy so even a touch of a slow down is a dramatic improvement.
There is also a related post of a same or similar issue that may help: https://support.mozilla.com/en-US/kb/The%20Adobe%20Flash%20plugin%20has%20crashed
I hope you never need this solution but if you do now you’ll be able to find it here!
PS: While this workaround is aimed at solving the Facebook unresponsive script issue there is no reason it might not work for other sites triggering a similar warning in Firefox.