Skip to content

Rule · Performance

DOM is very large

perf/dom-sizewarnvoid perfupdated

Why it matters

Large DOM trees make style recalculation, layout and every interaction slower and increase memory.

How to fix it

Paginate or virtualize long lists, remove hidden duplicate markup (e.g. separate mobile/desktop menus), and render off-screen sections lazily with content-visibility: auto.

void perf reports 25 rules in this category. Core Web Vitals and bytes: LCP, CLS, TBT, TTFB, JavaScript, CSS, fonts, images, caching and compression, measured as the median of several runs on a throttled mobile and a desktop profile.