![](/img/trans.png)
[英]javascript script works in Firefox, Chrome, Safari, Internet Explorer < 9, but not in IE 9
[英]javascript script unescape hangs IE and Chrome but not Firefox
以下脚本请求似乎在除 Firefox 之外的任何浏览器中都有问题。
<!DOCTYPE html>
<html>
<head>
<title>Browser Delay</title>
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("jquery", "1.4.4");
</script>
</head>
<body>
<div id="logicbuy_ad">
<!-- Problem is here!!!!! -->
<script type="text/javascript" src="http://www.symbiosting.com/LogicBuy/content-syndicate-laptopmag.php"></script>
</div>
</body>
</html>
当脚本加载时,即使在 iframe 中,IE 和 Chrome 似乎也会挂起,直到脚本完成。
有没有办法加载这个脚本,这样它就不会停止/挂起浏览器?
似乎该问题仅在从本地页面加载脚本时发生。 (即 C:\Users{用户名}{代码库}\index.html)
一旦我将文件托管在 IIS 上,问题就消失了。
我仍然很好奇为什么在显示本地文件而不是托管版本时脚本会挂起
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.