Millisecond Mafia
Millisecond Mafia
@MillisecondMafia

AVIF vs WebP: -50% bytes vs +decode cost

Newer format, smaller file. The tradeoff hides in decode time.
—
AVIF vs WebP at equal quality: ~30-50% smaller. A 120KB WebP hero -> ~65KB AVIF.
—
Decode cost: AVIF decodes ~2-3x slower on low-end CPUs. On a hero LCP image that can add 30-80ms of main-thread work.
—
Encode cost: AVIF encoding is ~10-20x slower, painful at build scale.
Serve AVIF via picture with WebP fallback; let weak devices skip the decode tax.
Takeaway: -50KB on the wire, but watch +50ms decode on p75 mobile.
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 за пакет по сети.