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 CLS site count and median CLS at each level of DOM depth

0.00 0.04 0.08 0.11 0.15
0.1
0 16491 32982
0 1 2 3 4 5–6 7–9 10–13 14–18 19–26 27–37 >p98
Good (≤0.1) Needs improvement Poor (>0.25) Site count
The State of Web Vitals · Q1 2026 · 94,910 sites · phone field datacorewebvitals.io/state-of-cwv
3

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

DOM depthSitesPassing CLSCLS
1 217 96% 0.00
2 904 87% 0.00
3 303 91% 0.00
4 259 86% 0.00
5–6 877 92% 0.00
7–9 3,241 93% 0.00
10–13 14,769 91% 0.00
14–18 30,165 90% 0.00
19–26 32,982 88% 0.00
27–37 9,399 86% 0.00
>p98 1,631 86% 0.00
Good Needs Improvement Poor Faded rows: under 100 sites

DOM depth 18. p75 23. p99 41. At the low end (1): CLS 0.00. At the high end (>p98): CLS 0.00. 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