识别 IE 中的速度减慢
我现在正在开发一个网站,但 Internet Explorer 速度变慢。更具体地说,在加载所有可见页面元素后,页面只会冻结大约 2 到 3 秒,就好像它仍在加载某些内容一样。通常,我只是在 FF 或 Chrome 中分析网站,但这个问题是 IE 特有的。我尝试在 IE 8 中使用分析器,但它没有给我任何帮助。有没有人对使用什么来识别 IE 中的减速点有任何建议(例如,类似于 chrome 中可用的网络分析)?
I am working on a site right now that is experiencing a slow down in Internet Explorer. More specifically, the page just freezes for around 2 to 3 seconds after loading all of the visible page elements, as if it is still loading something. Normally, I just profile the site in FF or Chrome, but this issue is specific to IE. I tried using the profiler in IE 8, but it is not getting me anywhere. Does anyone have any suggestions for what to use to identify the point of slow down in IE (for instance, something similar to the network profiling available in chrome)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您写道您尝试在 IE 中使用探查器,但是您使用了 IE 开发工具?在本文的“使用探查器”部分中,有探查器和“函数”视图的屏幕截图,但还有您可能想要的“调用树”视图尝试。
按开始分析,执行您要检查的操作,按停止分析,更改为调用树视图,按包含时间降序排序,展开最耗时的选项(第一个),展开下一个,继续,然后你应该能够找到减速点。
我在我的项目中找到了一些代码片段,这对 IE 来说是一个很大的问题(比如制作 1,8k RexExp 对象等)。
You wrote you tried to use profiler in IE, but did you use IE Developer Tools? In section Using the Profiler in this article there is a screenshot of profiler and Function view, but there is also Call Tree view you may want to try.
Press Start profiling, do the action you want to inspect, press Stop profiling, change to Call tree view, sort by inclusive time descending, expand most time-expensive option (first), expand next one, go on, and then you should be able to find slow down point.
I was able to find few code fragments in my project which were quite big problem for IE (like making 1,8k RexExp object etc.).