Millisecond Mafia
Millisecond Mafia
@MillisecondMafia

32,000 DOM nodes turned every keystroke into a 180ms style recalc

DOM size is a hidden INP tax: large trees make style/layout recalculation expensive per interaction.
— A filterable table rendered all 32k rows into the DOM. Each input event triggered a full style recalc: 180ms.
— Lighthouse flagged 'Avoid an excessive DOM size' — most ignore it, but it directly inflates INP.
— Virtualized the list (render only ~40 visible rows): DOM nodes 32k -> 1,400.
— Style recalc per keystroke: 180ms -> 14ms. INP 260ms -> 90ms.
Every interaction re-evaluates style against the whole tree. Fewer nodes = cheaper recalc = lower INP.
Takeaway: 90ms INP after cutting the DOM 95%.
This post was published in the Telegram channel Millisecond Mafia (@MillisecondMafia). All its posts are on the channel page.
Open on Telegram

Latest posts in “Tools and infrastructure”

All channels in this category →

реклама в сети

Готовы запустить рекламу через сеть public.tg?

Новый оффер, продукт, GEO, кейс, событие или партнёрский запуск — соберём маршрут под задачу и отдадим медиаплан.

Telegram для медиаплана: @AFFtop_connect. Быстрый тест: $20 за канал, $1000 за пакет по сети.