Parallelization in JavaScript with Web Workers
Most of the time, JavaScript developers don't need to worry about CPU-intensive tasks. Every once in a while, though, some long-running, CPU-heavy work needs to be done client-side (for example, plotting an equation on a graph). If you try to do that sort of work in plain-old JavaScript client-side, it will block and cause the website to freeze up and become unresponsive until it's done, which isn't very good UX.
Read more →