Performance · DOM
Excessive DOM depth
A paragraph on this page sits inside 40 nested div elements, so the DOM is more than 32 levels deep, which slows down styling and layout.
How this page is built
The sentence below sits inside 40 div elements, each nested inside the last. The rest of the page is normal, so the page has few elements in total and no element has many children.
This paragraph is nested inside 40 div elements.
Why it matters
Deeply nested elements make style calculation and layout slower, because changes have to be worked out through every level. Lighthouse reports a depth over 32 as excessive.
Deep nesting usually comes from page builders, component libraries that wrap every part in several elements, and layouts built from nested grids.
How to check it
Run Lighthouse or PageSpeed Insights on the page and look at the diagnostics. Crawl tools that run Lighthouse for each page, or that measure page resources, report the same finding across the site. Lighthouse names the deepest element and its depth. The breadcrumb at the bottom of the browser’s Elements panel shows how deep an element sits.
How to fix it
Remove wrapper elements that do nothing, and use CSS grid or flexbox instead of nesting containers to build layouts.