Millisecond Mafia
Millisecond Mafia
@MillisecondMafia

Myth: HTTP/2 killed bundling, ship many small files

Myth: HTTP/2 killed bundling, ship many small files
Unbundled 1 file into 60 modules: transfer same, TBT 180ms -> 340ms.
HTTP/2 multiplexing removed the per-request connection penalty, so the old "concatenate everything" rule loosened. But it didn't make 60 files free.
— Each module is a separate parse+compile unit; per-file overhead and import resolution add main-thread cost.
— Compression also worse: 60 small files brotli to ~12% larger than one stream (less shared dictionary window).
Moderate bundling still wins; the right number is dozens, not hundreds, not one.
Takeaway: over-splitting cost +160ms TBT and +12% bytes.
Этот пост опубликован в Telegram-канале Millisecond Mafia. Подписаться можно по ссылке: @MillisecondMafia.
tech

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

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

start

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

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

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