DOM depth

The deepest nesting level in the DOM tree.

Field data PhoneDesktopAll Scope All sites Q1 2026 edition · Phone field outcomes
Metric LCP INP CLS
1

At a glance the headline numbers for DOM depth

The deepest nesting level in the DOM tree.

18
on the typical site
half of sites sit at or below
23
1 in 4 sites exceed this
the top quarter
41
the heaviest 1%
the long tail
94,748
sites measured
phone field data

The typical DOM tree is 18 levels deep.

The State of Web Vitals · Q1 2026 · 94,910 sites · phone field datacorewebvitals.io/state-of-cwv
2

Distribution & median INP site count and median INP at each level of DOM depth

0ms 63ms 125ms 188ms 250ms
200ms
0 16491 32982
0 1 2 3 4 5–6 7–9 10–13 14–18 19–26 27–37 >p98
Good (≤200ms) Needs improvement Poor (>500ms) Site count
The State of Web Vitals · Q1 2026 · 94,910 sites · phone field datacorewebvitals.io/state-of-cwv
3

Passing INP by DOM depth which level passes the INP most often

DOM depthSitesPassing INPINP
1 217 88% 102ms
2 904 81% 114ms
3 303 66% 132ms
4 259 74% 114ms
5–6 877 77% 113ms
7–9 3,241 83% 95ms
10–13 14,769 91% 93ms
14–18 30,165 93% 96ms
19–26 32,982 93% 102ms
27–37 9,399 92% 103ms
>p98 1,631 87% 102ms
Good Needs Improvement Poor Faded rows: under 100 sites

DOM depth 18. p75 23. p99 41. At the low end (1): INP 102ms. At the high end (>p98): INP 102ms. computed

The State of Web Vitals · Q1 2026 · 94,910 sites · phone field datacorewebvitals.io/state-of-cwv
4

Why this matters for the Core Web Vitals, and where to start fixing it

Depth is a different problem than size. Styles inherit downwards. Toggle a class high in the tree and the browser recalculates everything below it. Layout changes also travel through ancestors, and percentage heights and flexbox make that worse. Selector matching walks the ancestor chain too, so deep trees pay more for every CSS rule.

In practice this shows up as INP. The click is fast and the JavaScript is fast, but the style and layout pass after the update is slow because the change affects too many nested levels. A flatter tree holds the same content but keeps each update local.

How does DOM depth affect the Core Web Vitals?

Nesting levels correlate with the INP. In the flattest trees, 81% of sites pass the INP. In the deepest trees, 87% do. The rise is gradual.

Related signals Script coverage (used vs unused) → Image loading attribute → Images per page → Compression mix → Chrome field data from 94,910 sites, representing millions of real page loads · How we measured