为什么IE 8比IE 6慢一些javascripts [英] why IE 8 is slower than IE 6 for some javascripts

查看:76
本文介绍了为什么IE 8比IE 6慢一些javascripts的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请查看

http:// math.elinkage.net/showthread.php?tid=8

 

我尝试了很多不同的浏览器,IE 8是最慢的

I tried many different browsers and IE 8 is the slowest one

推荐答案

您好,

重新设计您的页面,以便不开始测试来自onload。 IE8与早期版本不同地构建DOM。也许是一个"开始测试"按钮。

Redesign your page so that the test is not started from onload. IE8 builds the DOM differently from earlier versions. Perhaps a 'Start Test' button.

尝试关闭用于更新显示的注入的innerHTML值。它们在呈现之前由IE8进行清理/验证。

Try also turning off the injected innerHTML values you use to update the display. These are sanitized/validated by IE8 before they are rendered.

如果有任何标记错误最终将达到一个阈值,其中兼容性视图恢复将启动并刷新页面渲染模式。

If there are any markup errors eventually it will reach a threshold where the Compatibility view recovery will kick in and refresh the page in a lower rendering mode.

在IE8中测试页面时,关闭"使用兼容性视图自动从渲染错误中恢复"非常重要。在IE选项的"高级"选项卡上,以便不会触发任何兼容性恢复。

When testing your pages in IE8 it is important to switch off "Automatically recover from rendering errors with Compatibility View" on the Advanced tab of IE options so that any Compatibility recovery is not triggered.

使用IE8 Developer Tool中的Script Profiler检查脚本的性能。

Use the Script Profiler in the IE8 Developer Tool to examine the preformance of your scripts.

哦,

始终添加< noscript>标记到您的页面.....如果没有人可能会访问并认为它已损坏,忘记他们已关闭脚本。

Always add <noscript> tags to your pages..... without that someone may visit and think its broken, forgetting that they have turned off scripting.

我将* .elinkage.net添加到我的受限制网站后区域,您的页面加载并在1.5秒内显示。

After I add *.elinkage.net to my Restricted Sites zone, your page loads and displays in 1.5 seconds.

问候。


这篇关于为什么IE 8比IE 6慢一些javascripts的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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