Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to avoid the Unresponsive Script popup in Firefox with long running Javascript?

I want to benchmark some Javascript code in the browser, but it may trigger Firefox's "Warning: Unresponsive script" popup. This allows the user to click "Stop script" in the event that the browser is caught in a runaway function. While the pop-up is displayed, the currently running function has been halted. This isn't ideal, so is there a way to run my benchmarks differently such that Firefox doesn't popup this warning and ruin my results?

like image 484
spoulson Avatar asked Dec 16 '09 20:12

spoulson


1 Answers

In firefox's address bar type about:config

You want to change dom.max_script_run_time to be large enough for your scripts to run.

like image 189
tloach Avatar answered Sep 28 '22 21:09

tloach