Web Workers: Adding Multi-threading to JavaScript

Web Workers makes it possible to run a script operation in a background thread separate from the main execution thread of a web application. The advantage of this is that laborious processing can be performed in a separate thread, allowing the main (usually the UI) thread to run without being blocked/slowed down.
Web workers have been around for a long time and add multi-threading capability to JavaScript. Let's dive in and see how they work.


