【发布时间】:2010-12-08 17:33:37
【问题描述】:
我工作的一个网站在 IE8 中加载速度非常慢,我试图找出罪魁祸首。该网站是virginwines.com
关于如何使用浏览器工具找出导致问题的 JS,有人有什么建议吗?
【问题讨论】:
标签: javascript jquery ie-developer-tools
我工作的一个网站在 IE8 中加载速度非常慢,我试图找出罪魁祸首。该网站是virginwines.com
关于如何使用浏览器工具找出导致问题的 JS,有人有什么建议吗?
【问题讨论】:
标签: javascript jquery ie-developer-tools
您可以在 IE8 中使用Developer Tools Profiler 来查看它在哪里花费了大部分时间。
【讨论】:
您可以使用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。)
【讨论】: