Web Worker

A script that runs on its own background thread, separate from the page's main thread, so heavy computation does not freeze the page.

In more detail

Workers have no access to the DOM, window or document; they talk to the page by passing messages with postMessage and the message event. Use them for parsing, image processing or number crunching that would otherwise cause long tasks.

Related terms

Taught in

References