I thought the primary purpose of web workers was that the browser can run the workers in parallel to the main thread. As the spec says:
> [Web workers] allow long tasks to be executed without yielding to keep the page responsive
> [Web workers] allow long tasks to be executed without yielding to keep the page responsive
You don't get extra calculation performance with web workers. You just create the illusion of a smooth experience because you don't block painting. It does not complete faster.
https://github.com/jschaf/web-worker-experiment/
> You don't get extra calculation performance with web workers
The primary purpose of web workers is extra calculation performance. From MDN:
> Workers are mainly useful for allowing your code to perform processor-intensive calculations without blocking the user interface thread