Why Your UI Drops Below 60 FPS
Trace jank from forced layouts and microtask starvation to VRAM and preloads.
- Step 1
Browser Rendering Pipeline (Critical Rendering Path)
Avoid 60fps-killing main-thread reflows by targeting compositor-only properties—every geometric DOM write forces Style, Layout, Paint, and Composite to re-run.
- Step 2
Layout Thrashing (Forced Synchronous Layout)
Interleaving DOM writes and geometric reads inside JavaScript forces the engine to recompute Layout synchronously on every iteration.
- Step 3
GPU Compositor Layers and will-change
Promotion of a DOM subtree to a dedicated GPU texture allowing the Compositor Thread to animate transform and opacity without Layout or Paint.
- Step 4
Event Loop, Macrotasks, and Microtask Queue
Prevent 60fps frame starvation and Promise-loop freezes—the Event Loop drains the entire Microtask Queue after every single macrotask before painting.
- Step 5
Preload Scanner and fetchpriority Attribute
Speculative HTML scanner discovering critical resources before JS execution, paired with fetchpriority to reorder the HTTP/2-HTTP/3 queue.