开发者

Javascript error - Blocking IE performance

开发者 https://www.devze.com 2023-01-16 00:14 出处:网络
I am trying to run a script, which is intense(that is lot of loops etc.).When I am trying to call this method in loop, I am getting an error:

I am trying to run a script, which is intense(that is lot of loops etc.). When I am trying to call this method in loop, I am getting an error:

"The JavaScript operation is blocking the normal operation of IE. Do you want to stop running the script?" Yes No.

Is there something I am missing? I have seen worse scripts running just fine.开发者_如何学C


If your script does that, you might want to re-engineer your code.

If your code really need to loop for that long you will be dealing with some timeouts in your script to stop every time you think is necessary to avoid this "behavior"...

I recommend to check this post JavaScript and Threads

0

精彩评论

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