如何追踪IE8中加载缓慢的JS?

发布于 2024-10-07 03:42:40 字数 101 浏览 7 评论 0原文

我工作的一个网站在 IE8 中加载速度非常慢,我正在尝试找出罪魁祸首。该网站是 virginwines.com

有人对如何使用浏览器工具找出导致问题的 JS 有任何建议吗?

One of the websites I work on loads extremely slow in IE8 and Im trying to track down the culprit. The website is virginwines.com

Anyone have any advice around how I can use browser tools to figure out which JS is causing the issue(s)?

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

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

发布评论

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

评论(2

故事与诗 2024-10-14 03:42:40

您可以使用 开发者工具分析器,查看它大部分时间都花在哪里。

You can use the Developer Tools Profiler in IE8 to see where it is spending most of its time.

鼻尖触碰 2024-10-14 03:42:40

您可以使用 Fiddler2(调试代理)来查看 IE 和站点之间的流量。使用 IE8,该网站因无缓存指令而返回 404 的 8 个图像陷入停滞。

#   Result  Protocol    Host    URL Body    Caching Content-Type    Process Comments    Custom  
9   404 HTTP    www.virginwines.com /images/us/en/brands/virgin/internet_explorer/borderTopLeft.png 1,529   no-cache  Expires: Wed, 08 Dec 2010 17:42:00 GMT    text/html;charset=UTF-8 iexplore:1784           
10  404 HTTP    www.virginwines.com /images/us/en/brands/virgin/internet_explorer/borderTopCenter.png   1,529   no-cache  Expires: Wed, 08 Dec 2010 17:42:01 GMT    text/html;charset=UTF-8 iexplore:1784           
11  404 HTTP    www.virginwines.com /images/us/en/brands/virgin/internet_explorer/borderTopRight.png    1,529   no-cache  Expires: Wed, 08 Dec 2010 17:42:01 GMT    text/html;charset=UTF-8 iexplore:1784           
12  404 HTTP    www.virginwines.com /images/us/en/brands/virgin/internet_explorer/borderMiddleLeft.png  1,529   no-cache  Expires: Wed, 08 Dec 2010 17:42:01 GMT    text/html;charset=UTF-8 iexplore:1784           
13  404 HTTP    www.virginwines.com /images/us/en/brands/virgin/internet_explorer/borderMiddleRight.png 1,529   no-cache  Expires: Wed, 08 Dec 2010 17:42:02 GMT    text/html;charset=UTF-8 iexplore:1784           
14  404 HTTP    www.virginwines.com /images/us/en/brands/virgin/internet_explorer/borderBottomLeft.png  1,529   no-cache  Expires: Wed, 08 Dec 2010 17:42:02 GMT    text/html;charset=UTF-8 iexplore:1784           
15  404 HTTP    www.virginwines.com /images/us/en/brands/virgin/internet_explorer/borderBottomCenter.png    1,529   no-cache  Expires: Wed, 08 Dec 2010 17:42:03 GMT    text/html;charset=UTF-8 iexplore:1784           
16  404 HTTP    www.virginwines.com /images/us/en/brands/virgin/internet_explorer/borderBottomRight.png 1,529   no-cache  Expires: Wed, 08 Dec 2010 17:42:03 GMT    text/html;charset=UTF-8 iexplore:1784           

正如其他人提到的,您可以使用 IE 开发人员工具栏 (F12) 和 Firebug Lite 适用于大多数主要浏览器。 (如果您使用 FireFox,您应该已经熟悉完整的 Firebug。)

You can use Fiddler2 - a debugging proxy - to view traffic between IE and the site. With IE8, the site is getting stalled on 8 images with a no-cache directive that are returning a 404.

#   Result  Protocol    Host    URL Body    Caching Content-Type    Process Comments    Custom  
9   404 HTTP    www.virginwines.com /images/us/en/brands/virgin/internet_explorer/borderTopLeft.png 1,529   no-cache  Expires: Wed, 08 Dec 2010 17:42:00 GMT    text/html;charset=UTF-8 iexplore:1784           
10  404 HTTP    www.virginwines.com /images/us/en/brands/virgin/internet_explorer/borderTopCenter.png   1,529   no-cache  Expires: Wed, 08 Dec 2010 17:42:01 GMT    text/html;charset=UTF-8 iexplore:1784           
11  404 HTTP    www.virginwines.com /images/us/en/brands/virgin/internet_explorer/borderTopRight.png    1,529   no-cache  Expires: Wed, 08 Dec 2010 17:42:01 GMT    text/html;charset=UTF-8 iexplore:1784           
12  404 HTTP    www.virginwines.com /images/us/en/brands/virgin/internet_explorer/borderMiddleLeft.png  1,529   no-cache  Expires: Wed, 08 Dec 2010 17:42:01 GMT    text/html;charset=UTF-8 iexplore:1784           
13  404 HTTP    www.virginwines.com /images/us/en/brands/virgin/internet_explorer/borderMiddleRight.png 1,529   no-cache  Expires: Wed, 08 Dec 2010 17:42:02 GMT    text/html;charset=UTF-8 iexplore:1784           
14  404 HTTP    www.virginwines.com /images/us/en/brands/virgin/internet_explorer/borderBottomLeft.png  1,529   no-cache  Expires: Wed, 08 Dec 2010 17:42:02 GMT    text/html;charset=UTF-8 iexplore:1784           
15  404 HTTP    www.virginwines.com /images/us/en/brands/virgin/internet_explorer/borderBottomCenter.png    1,529   no-cache  Expires: Wed, 08 Dec 2010 17:42:03 GMT    text/html;charset=UTF-8 iexplore:1784           
16  404 HTTP    www.virginwines.com /images/us/en/brands/virgin/internet_explorer/borderBottomRight.png 1,529   no-cache  Expires: Wed, 08 Dec 2010 17:42:03 GMT    text/html;charset=UTF-8 iexplore:1784           

As mentioned by others, you can use the IE developer tool bar (F12) and Firebug Lite is available for most major browsers. (If you're using FireFox, you should already be familiar with the full Firebug.)

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