Why Your UI Drops Below 60 FPS

Trace jank from forced layouts and microtask starvation to VRAM and preloads.

5 concepts · 22 min

  1. Step 1Not explored

    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.

  2. Step 2Not explored

    Layout Thrashing (Forced Synchronous Layout)

    Interleaving DOM writes and geometric reads inside JavaScript forces the engine to recompute Layout synchronously on every iteration.

  3. Step 3Not explored

    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.

  4. Step 4Not explored

    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.

  5. Step 5Not explored

    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.