Getting Work Off the Main Thread: Web Workers, Transferables, SharedArrayBuffer and Worker Pools
Web Workers aren't magic for every slow page. This post covers when moving work to a worker pays off, what structured clone really costs, transferables, SharedArrayBuffer and COOP/COEP, a hand-written Comlink-style RPC, bundler setup, worker pools, cancellation with AbortSignal, real examples and alternatives like scheduler.yield.