Web Worker

Web worker runs script on parallel thread which is separated from the main thread of web app.

Advantages:

  • The performance of laborious operations moves to separate threads.
  • The main thread relies to work mainly with UI.
Example