如何扩展浏览器脚本超时 [英] How to extend browser script timeout

查看:85
本文介绍了如何扩展浏览器脚本超时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一些需要一段时间才能运行的JQuery,几秒钟后我收到错误:

I have some JQuery that takes a while to run and after a few second I get the error:

停止运行此脚本?
此页面上的脚本导致Internet Explorer运行slowley。如果它继续运行,您的计算机可能会无响应

Stop running this script? A script on this page is causing internet explorer to run slowley. If it continues to run, your computer may become unresponsive

有没有办法延长超时?我想这意味着延长浏览到URL的人机的超时

Is there a way to extend the timeout? I guess that would mean extending the timeout on the persons machine who browses to the URL

推荐答案

如果您正在运行脚本谷歌浏览器,您可以在命令行中使用以下标志禁用挂起监视器: - disable-hang-monitor。

If you're running your script under Google Chrome, you can disable the hang monitor with the flag: --disable-hang-monitor at the command line.

在基于Mozilla的浏览器下(例如,Firefox,Camino) ,SeaMonkey,Iceweasel),转到about:config并更改dom.max_script_run_time键的值。

Under Mozilla based browsers (e.g., Firefox, Camino, SeaMonkey, Iceweasel), go to about:config and change the value of dom.max_script_run_time key.

这篇关于如何扩展浏览器脚本超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆