Vitals 101
Vitals 101
@CoreVitals101

Finding bloat: Coverage tab vs Lighthouse treemap

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.
Этот пост опубликован в Telegram-канале Vitals 101. Подписаться можно по ссылке: @CoreVitals101.
tech

Свежие посты в категории «Tech Infrastructure»

Все каналы категории →

start

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

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

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