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

后端 未结 5 865
心在旅途
心在旅途 2021-01-02 05:18

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\"

5条回答
  •  隐瞒了意图╮
    2021-01-02 05:45

    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.

提交回复
热议问题