Millisecond Mafia
Millisecond Mafia
@MillisecondMafia

JS 340KB -> 210KB by dropping legacy polyfills

The build transpiled to ES5 and shipped 130KB of polyfills to 100% of users — but analytics showed 99.6% on evergreen browsers.
— Switched to module/nomodule: modern bundle to evergreen, legacy only to the 0.4%.
— Modern bundle: 340KB | 210KB (gzip 96KB | 58KB).
Parse/compile on median mobile: 280ms | 160ms
p75 INP: 210ms | 150ms
Takeaway: 130KB of polyfills served to 99.6% of users who never needed a byte of them.
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 за пакет по сети.