At a glance the headline numbers for DOM depth
The deepest nesting level in the DOM tree.
The typical DOM tree is 18 levels deep.
Distribution & median CLS site count and median CLS at each level of DOM depth
Passing CLS by DOM depth which level passes the CLS most often
DOM depth 18. p75 23. p99 41. At the low end (1): CLS 0.01. At the high end (>p98): CLS 0.02. computed
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?
Passing INP barely moves across the range: 97% at one end, 97% at the other. This signal does not separate passing sites from failing ones.
The effect is bigger on LCP. In the flattest trees, 85% of sites pass it. In the deepest trees, 77% do.
Chrome field data from 94,910 sites, representing millions of real page loads. How we measured.