a script on this page is causing ie to run slowly

前端 未结 14 2609
野性不改
野性不改 2020-11-29 23:55

The problem is in the title - IE is misbehaving and is saying that there is a script running slowly - FF and Chrome don\'t have this problem.

How can I find the prob

14条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-30 00:28

    I don't believe there's a tool that can find the offending script. You might try attaching an IE debugger like Visual Studio and maybe it will break at the point where the problem is occurring. But I can't give any guarantees on that working.

    In the past when I've had similar problems I've simply commented out sections of code to test narrow down where the issue is occurring, usually in a binary search type pattern. Comment out half of the javascript libraries, etc...

    Aside from that as others have said, this type of problem occurs from large loops and many setTimeout function calls or setTimeout recursive loops.

提交回复
热议问题