An async loop freezes the browser main thread completely
Unbounded Promise/microtask chains starve the rendering step between macrotasks and block all user input until the microtask queue drains.
Long Task > 5000 ms; DevTools Performance shows continuous Microtask Checkpoint draining with zero Paint framesCausal 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.
Prevent 60fps frame starvation and Promise-loop freezes—the Event Loop drains the entire Microtask Queue after every single macrotask before painting.
Fix sluggish clicks and fail-threshold INP (>200 ms) by breaking >50 ms Long Tasks—Input Delay, Processing Duration, and Presentation Delay all compete on one main thread.
Understand stack overflows, Temporal Dead Zone errors, and closure heap promotion—every call pushes an Execution Context frame onto V8's single-threaded Call Stack.