开发者

How to check the number of Javascript statements run?

IE8 is giving me the not-uncommon "A script on this page is causing your browser to 开发者_开发百科run slowly" warning. Of course this only happens in IE and not in any other browser. I am using an Infragistics jQuery grid control that seems to be causing the warning.

On doing a little bit of research I learnt that while nearly every other browser displays the warning based on execution time (generally 5 or 10 secs), IE does it based on number of statements processed (5 million statements).

I want to be sure it is the grid control and not something else. Is there a way I can see the number of statements processed, maybe using something like Firebug or the IE developer tools?


IE8 has a profiler built in and it seems like no one knows it exists. IEBlog had a nice article explaining the profiler's features when IE8 was in BETA.


If you are using IE8 hit the F12 key and you will get a javascript debugger, step through the code and find the issue.


Firebug or chrome dev tools, you can see the timeline of execution.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜