简体   繁体   中英

IE7: “Script is running slowly, do you want to stop it?” - How can I figure out which script it is?

The damn thing gives me NO other information. It does not occur in any other browser.

This is caused by an unbounded loop of some sort.

Culprits could be: for, setTimeout, do and while.

How large is this collection of scripts? You could try the script debugging/profiling in IE8 while running in IE7 compatibility mode.

If that doesn't work, sometimes the old, remove x to isolate y works, albeit slowly.

Use Dynatrace ajax edition to profile you javascript. That will tell you exactly what is using too much cpu time, no need to guess :)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM