Back to glossary

Term

Critical Rendering Path

The critical rendering path is the sequence the browser runs to turn HTML/CSS/JS into pixels parsing, render tree, layout, paint. Optimizing it shortens first paint and LCP.

Critical Rendering Path — explained in more detail

The critical rendering path describes the steps between “HTML arrives from the server” and “pixels on the screen”. Simplified: parse HTML → build DOM, parse CSS → build CSSOM, combine the two → render tree, then layout (geometry), paint (colors/pixels), and compositing.

Synchronous render-blocking resources (CSS, sync JS) stall this pipeline at multiple points because the browser can’t render without the CSSOM and can’t safely keep parsing without executing JS first. The optimization idea: trim the critical path to the absolute minimum (inline critical CSS, defer JS, make web fonts non-blocking) — the first frame paints sooner, FCP and LCP benefit directly.

Example / In practice

A Lighthouse “Critical Rendering Path” audit shows a landing page with 5 round-trips (HTML, 3× CSS, 1× JS) before first paint. After inlining above-the-fold CSS and adding defer to JS, 1 round-trip remains — first paint drops from 2.1 s to 0.7 s.

Distinction from similar terms

Render-blocking resources are a specific bottleneck within the CRP. Time to first paint is the CRP’s output. Hydration comes after — it makes server-rendered HTML interactive.

Entdecke mehr