TECHNOLOGY INDEX / REFERENCEWEB PLATFORM / CONCURRENCYBROWSER BACKGROUND THREADS
REFERENCE / WEB WORKERS

Web Workers

Web Workers run JavaScript in background threads that are isolated from the page interface and communicate through messages.

WHAT IT DOES / 01

MOVE THE WORK.
KEEP INPUT RESPONSIVE.

They move CPU-heavy or independent jobs away from the main thread so rendering, input and interface updates can remain responsive.

KEY CONCEPTS / 02

THE CORE
IDEAS.

  1. 01

    ISOLATED CONTEXT

    Run code without direct access to the page DOM or the main thread’s local variables.

  2. 02

    MESSAGE PASSING

    Exchange structured data through posted messages and transferable buffers.

  3. 03

    WORKER LIFECYCLE

    Create, reuse and terminate workers according to the application workload.

KEEP EXPLORING / 03

OFFICIAL
RESOURCES.

BACK TO ARCHIVEALL PROJECTS←