web worker

/web WUR-ker/ · noun · Development · Origin: 2010

Definitions

  1. A mechanism for running JavaScript in a background thread separate from the main page thread, preventing CPU-intensive tasks from blocking the user interface. Web workers communicate with the main thread via message passing and cannot directly access the DOM. They're essential for heavy computation (image processing, data parsing) in the browser.

    In plain English: A way to run heavy JavaScript calculations in the background so the web page stays responsive — like having a helper do math in another room.

    Example: We moved the CSV parsing into a web worker so the UI stays responsive even when processing a 500MB file in the browser.

Related Terms