【问题标题】:How to tracking down slow loading JS in IE8?如何在 IE8 中跟踪加载缓慢的 JS?
【发布时间】:2010-12-08 17:33:37
【问题描述】:

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

关于如何使用浏览器工具找出导致问题的 JS,有人有什么建议吗?

【问题讨论】:

    标签: javascript jquery ie-developer-tools


    【解决方案1】:

    您可以在 IE8 中使用Developer Tools Profiler 来查看它在哪里花费了大部分时间。

    【讨论】:

    • 并为我不知道的工具+1 :)
    【解决方案2】:

    您可以使用Fiddler2 - 一个调试代理 - 来查看 IE 和站点之间的流量。使用 IE8,该站点在 8 个带有返回 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           
    

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

    【讨论】:

    • 太棒了,帮助很大。我添加了丢失的图片,现在页面加载速度更快了!
    • Fiddler 是您的武器库中的绝佳工具。有时,仅查看原始 HTTP 请求就可以让您了解其他方式难以获得的洞察力。很高兴我能帮上忙。
    猜你喜欢
    • 1970-01-01
    • 2010-12-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多