Horje
How to Terminate a Web Worker

When a web worker object is created, it will continue to listen for messages (even after the external script is finished) until it is terminated.


Learn to Terminate a Web Worker

To terminate a web worker, and free browser/computer resources, use the terminate() method:

index.html
Example: HTML
w.terminate();






Category :
Web Tutorial
Sub Category :
HTML Web Workers API
Uploaded by :
Admin


Read Article
https://horje.com/learn/1434/reference