Sorting 100k table rows drops the UI to 4 FPS on the main thread
Moving heavy sorting and persistence off the main thread into Dedicated Workers with Transferable TypedArrays and OPFS eliminates UI frame drops.
Long Task > 250 ms during Array.prototype.sort; structuredClone serialization spikes GC pause timeCausal Chain of Browser Mechanisms
Ordered from trigger to root invariant. Open any mechanism to inspect its internals or reproduce the behavior in an interactive lab.
Isolated OS-thread JavaScript runtimes with their own event loop and no DOM access, communicating via structured cloning or zero-copy transferable ownership.
Contiguous binary buffers (ArrayBuffer) paired with unboxed numeric views (Uint8Array, Float32Array) that transfer across workers in O(1) via ownership handoff.
Origin-sandboxed virtual file system backed by raw OS files, offering synchronous in-place byte-range I/O inside Dedicated Workers.
Calling a Wasm function per pixel or per DOM node burns more CPU marshaling strings across the JS boundary than running pure JS. Batch workloads into shared Linear Memory ArrayBuffers to amortize trampoline and UTF-8 copy costs.
Stop freezing 60fps UI frames with Redux reducers and SQLite queries on the main thread. Isolated Worker actors serialize state mutations behind message mailboxes, keeping the main thread exclusively for DOM commits and input.