Explore Web Workers
A collection of examples demonstrating different types of Web Workers and their use cases.
Dedicated Worker
The simplest form of Web Worker. Runs in its own thread and communicates with the main thread via message passing.
Shared Worker
Can be accessed from multiple scripts across different windows, iframes, or even workers.
Offscreen Canvas
Allows canvas rendering to happen off-main-thread, keeping the UI responsive during heavy graphics work.