Background calculation using a Web Worker

This example uses a Web Worker. Workers are inherently parallel, and you can see the calculations are running on different threads.

Click on the Calculate button, and you can see the UI is not affected by the calculations. It stays responsive, indicating the processing is running on different threads.