Vitals 101
Vitals 101
@CoreVitals101

AVIF vs WebP: choosing your image format for LCP

AVIF vs WebP: choosing your image format for LCP

Modern image formats shrink files dramatically, and smaller files mean faster LCP — Largest Contentful Paint. Two names matter: WebP and AVIF.

Think of them like vacuum-packing: same photo, far less space. WebP typically saves around 25-35% versus JPEG. AVIF goes further, often 50% smaller, though it encodes more slowly.

The smart move is offering both with a fallback, so each browser takes what it supports.

1. Use the <picture> tag with AVIF first, WebP next, JPEG last.
2. The browser picks the first format it understands.
3. Old browsers quietly fall back to the JPEG — nobody breaks.

That fallback chain is the trick that makes it safe to adopt today.

Try this: convert your single heaviest image to AVIF, drop it in a <picture> tag, and compare the new file size. The shrink is often jaw-dropping.
Этот пост опубликован в Telegram-канале Vitals 101. Подписаться можно по ссылке: @CoreVitals101.
tech

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

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

start

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

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

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