Vitals 101
Vitals 101
@CoreVitals101

A font fix took CLS from 0.28 to 0.02

A font fix took CLS from 0.28 to 0.02

CLS — Cumulative Layout Shift — measures how much things jump around as a page loads. Think of it like reading a newspaper while someone keeps yanking the page sideways. Good CLS is under 0.1.

A blog scored a rough 0.28. The cause: a custom web font loaded late, so text first showed in a system font, then snapped to the new one at a different size, shoving paragraphs down.

What was done:

— Added font-display: optional so the browser keeps the fallback if the custom font is slow.
— Picked a fallback font with similar letter width to reduce the snap.

Result: CLS fell to 0.02. Readers stopped losing their place mid-sentence.

Try this: reload your article and watch the first line of text. If it visibly jumps, your font is the culprit.
Этот пост опубликован в Telegram-канале Vitals 101. Подписаться можно по ссылке: @CoreVitals101.
tech

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

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

start

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

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

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