Vitals 101
Vitals 101
@CoreVitals101

Finding bloat: Coverage tab vs Lighthouse treemap

Both tools tell you which code is too heavy, but in different shapes. The Coverage tab (in Chrome DevTools) shows what percent of each file went unused on this page. Lighthouse's treemap draws every script as a colored rectangle sized by weight.

Think of Coverage like a receipt and the treemap like a pie chart.

When to reach for which:
— You want to cut unused code from one specific file: Coverage, since it highlights the exact unused lines.
— You want to spot the single biggest offender fast: treemap, because the largest rectangle jumps out.

Try this: in DevTools press the menu (three dots), open 'Coverage', reload the page, and sort by 'Unused Bytes'. The top row is usually your easiest win. This one's more visual than scary.
This post was published in the Telegram channel Vitals 101 (@CoreVitals101). 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 за пакет по сети.