Most implementations of JavaScript are single-threaded, with some exceptions. As JavaScript has begun to do more and more in terms of computation, the fact that a lot of processing is confined to a single thread has become somewhat limiting even with Web APIs to bear some of that load. On a single thread, for example, poorly written but computationally intensive code can stop the entire application from working.
To solve this problem and many more, the Web Workers API has been designed to give JavaScript a ...