我正在开发一个网站,使大量使用JavaScript(jQuery的)。我经常得到IE浏览器停止运行此脚本?错误对话框,当我尝试关闭浏览器。
I am developing a site that makes extensive use of JavaScript (jQuery). I regularly get the IE 'Stop running this script?' error dialog when I try to close the browser.
我猜出现这个问题,因为该网站是使用AJAX单页,所以没有回发复位执行的命令的IE浏览器的数量。
I'm guessing the problem occurs because the site is a single page that uses AJAX, so there are no postbacks to reset IE's count of commands executed.
客户端注册表黑客不是一个选项。
Client-side registry hacking is not an option.
有谁知道一个方法来解决这个问题?
Does anyone know a way to get around this error?
更新:该页面有一个数字(约10)间隔计时器民调持续在30秒间隔或60
UPDATE: The page has a number (~10) interval timers that poll continually on 30 or 60 second intervals.
我也面临这个问题,并已通过将连续DOM executio克服了这个问题。对于这种方法,我用的setTimeout
功能。彻底解决这个问题取决于你如何分割连续执行。
I have also faced this issue and had overcame this issue by dividing the continous DOM executio. For this approach, I used setTimeout
function. Resolving this issue completely depends on how you are dividing the continuous execution.
上一篇:任何方式加载通过JavaScript较慢的外部文件时,正常执行超时限制?较慢、加载、正常、方式
下一篇:为什么浏览器不使用XMLHTT prequest和CORS跟踪重定向?重定向、浏览器、prequest、XMLHTT