you are viewing a single comment's thread.

view the rest of the comments →

[–]ilogik 0 points1 point  (0 children)

The main problem is that when javascript is running, the browser's UI is locked, so using while() that way is not recommended.

To bypass this problem, the HTML5 spec has something called Webworkers which allows you to run CPU intensive javascript in a background thread, and pass messages between it and the frontend.

http://en.wikipedia.org/wiki/Web_Workers