Maximum execution time for JavaScript

后端 未结 3 1279
隐瞒了意图╮
隐瞒了意图╮ 2020-12-16 02:53

I know both ie and firefox have limits for javascript execution (Source 1, Source 2). Based on number of statements executed, I heard it was 5 million somewhere in IE and ba

3条回答
  •  孤街浪徒
    2020-12-16 03:12

    The event handler is considered a new execution context - the time limit is reset.

    If you need to do even more computation, take a look at WebWorkers.

提交回复
热议问题