Vitals 101
Vitals 101
@CoreVitals101

The mistake: images with no width and height

The mistake: images with no width and height

This is the number-one cause of CLS — Cumulative Layout Shift, which measures how much your content jumps as it loads. When an <img> has no dimensions, the browser doesn't know how much space to save. So text loads, then the image pops in and shoves everything down.

Think of it like reserving a parking spot before a car arrives, so nobody else parks there by accident.

How to fix it:
— Open your image tags and add real pixel values: width="800" height="450".
— Use the image's actual dimensions, not guesses.
— In your CSS, keep height: auto so it still scales responsively.

The browser reserves the right space, and nothing jumps.

Try this: pick one image, add width and height, reload, and watch the page settle calmly into place.
Этот пост опубликован в Telegram-канале Vitals 101. Подписаться можно по ссылке: @CoreVitals101.
tech

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

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

start

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

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

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