Menu

Our home page has 1,416 elements, its deepest chain is a tooltip, and the widest parent on every page is the footer tree
📰

Our home page has 1,416 elements, its deepest chain is a tooltip, and the widest parent on every page is the footer tree

DEV Community: html·Daniel Pertu·2 days ago
#dUQeq4dS
#devto2#devto#dev#elements#pages
Long article (977 words) — no AI summary yet.
Reading 0:00
15s threshold

Browsers' DOM tooling asks three questions about a page: how many elements, how deep, and how wide. I had never asked them of Nakodo , because the pages are static and fast and nothing was complaining. I fetched all 106 URLs in the sitemap , cut out the <script> contents, and counted.

How many

Counting every element inside <body> , including SVG children:

62 of the 106 pages are over 800. That is the figure at which, as I remember Lighthouse's "avoid an excessive DOM size" audit, a page starts to lose score, and the audit fails outright around 1,400. The home page is over it by 16. The next largest is pricing at 989, then two of the guides at 870 and 855.

I am quoting those thresholds from memory, so check them against the current audit before you lean on them. What I am sure of is the count, and what drives it. The home page carries the hero with its leaves, the product tour, the FAQ and the footer, and the other pages have a subset.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.