jQuery 和 IE8 兼容性视图

发布于 2024-10-02 10:18:57 字数 343 浏览 0 评论 0原文

在我正在开发的网站上进行前端 javacript 性能测试时,我发现在 IE8 标准模式下一切都运行得非常慢。但如果我打开兼容性视图,它运行得非常好 - 动画更加流畅。

不幸的是,我无法上传链接来显示,但我正在使用的插件之一是放大镜: http://www.huydinh.co.uk/demo/magnifier/

切换兼容模式,然后移动光标。

我还尝试添加 EmulateIE7 元标记,但没有什么区别。 以前有人遇到过这种情况吗?有办法解决吗?

请帮忙! 谢谢。

While doing a front-end javacript performance test on a site I'm developing, I'm finding on IE8 standards mode everything runs ridiculously slow. But if I flip compatibility view on, it runs very well - the animations are much smoother.

Unfortunately I cannot upload a link to show, but one of the plugins I'm using is a magnifier:
http://www.huydinh.co.uk/demo/magnifier/

Toggle between compatibility mode, and move cursor around.

I also tried adding the EmulateIE7 meta tag, but it made no difference.
Has anyone encountered this before? Is there a way to fix it?

Please help!
Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

会傲 2024-10-09 10:18:57

最好您可以让网站在 IE8 标准模式下以合理的性能运行。您是否尝试过按照此处记录的方式强制使用兼容模式?

链接

一种方法(如上面的文章所述) ) 将在 之后包含以下 标记:

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />

Preferably you could get the site to work with reasonable perf in IE8 Standards mode. Have you tried forcing compatibility mode as documented here?

Link

One way (as noted in the article above) is to include the following <meta> tag right after the <head>:

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
国粹 2024-10-09 10:18:57

我之前遇到过这个问题,并通过添加正确的文档类型并修复 html 验证器中的所有页面错误来修复它: validator.w3.org 可能不是您正在寻找的东西,但无论如何这是一个很好的做法。

I've run into this problem before and fixed it by making adding a correct doctype and fixing all my page errors in the html validator: validator.w3.org May not be what you're looking for but it's good practice anyways.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文