a script on this page is causing ie to run slowly

前端 未结 14 2608
野性不改
野性不改 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:29

    If javascript ties up page processing for more than 10 seconds, you get this message. IE obviously has a slower javascript engine, causing this.

    I'm guessing that some code optimization will certainly help, and try reducing the amount of javascript executing on page load. Perhaps use setTimeout() to defer processing of some unnecessary things if you have to.

    As far as tools go, use Firebug's profiler to see where you're spending so much time.

提交回复
热议问题