A way in which we can make the Web Workers API behave a lot more nicely. Why? Long running calculations in JavaScript are generally a bad idea. This is because JavaScript is a single-threaded environment; anything we do takes place on the UI thread, and when a script is running, the UI is unresponsive. To prevent this happening all the time, browsers have implemented various warning messages that
![Combining jQuery Deferred with the HTML5 Web Workers API](https://cdn-ak-scissors.b.st-hatena.com/image/square/7884f5155a598ba4e592fac9435bf13b27259e38/height=288;version=1;width=512/https%3A%2F%2Fwww.codeproject.com%2FKB%2Fscripting%2Fparallel-js%2FThumbnail.png)