Skip to content

Worker offload (no stall)

Loading…

Main-thread-stall demo: a heavy CPU job on the main thread freezes the page and spikes the frame-time graph; in a Web Worker via modules/worker-pool the dots keep drifting smoothly.

Controls: Job-size slider, “Run in worker” checkbox, Run job button

Source: examples/worker-offload

Exercises: worker-pool.