Frontend · interactive
Web Workers
A page animates at 60 frames a second, then starts a 1.2-second calculation (parsing a big file, say). JavaScript on the main thread blocks rendering and input until it finishes. A Web Worker runs it on another thread.
Main thread
calculation
Frames painted
0 s2 s
72 of 119 frames dropped · clicks ignored for 1.2 s
For 1.2 seconds the browser can't paint or respond: the animation freezes and clicks queue up. That's a long task.
Run the calculation on
Step 1 of 4 · read left to right
In production
Tools and technologies
Workers are built into every browser.
Not tied to one language — use these names when you search docs or design a system.