What does Google say about SEO? /

Official statement

Images can contribute to Cumulative Layout Shift problems if they are used incorrectly, particularly when the browser does not know their dimensions before the page renders.
🎥 Source video

Extracted from a Google Search Central video

💬 EN 📅 06/05/2022 ✂ 11 statements
Watch on YouTube →
Other statements from this video 10
  1. Is CLS really a full-fledged Google ranking factor you can't ignore?
  2. Does specifying image dimensions really fix Cumulative Layout Shift?
  3. Are lab data really enough to optimize your Core Web Vitals, or do you need real user metrics?
  4. How is the Chrome User Experience Report revolutionizing the way you measure your website's actual performance?
  5. Does LCP really measure how fast your main content appears on screen?
  6. Should you really prioritize loading your hero images to improve LCP?
  7. Is lazy loading really hurting your above-the-fold images and LCP?
  8. Why is PageSpeed Insights the performance tool you should prioritize for SEO?
  9. Can HTTP/2 really boost your site's performance without major technical overhaul?
  10. Should you really convert all your images to WebP for SEO?
📅
Official statement from (3 years ago)
TL;DR

Images without explicit dimensions trigger layout shifts (CLS) because the browser cannot reserve the necessary space before they load. Alan Kent reminds us that a basic integration error — omitting width and height — is enough to degrade Core Web Vitals. The solution has been known for years, yet remains ignored on a significant portion of audited websites.

What you need to understand

Why do images cause Cumulative Layout Shift?

The browser builds the DOM and calculates the layout before external resources (images, in particular) are downloaded. If no dimensions are specified in the HTML, the browser allocates zero pixels of height to the image location.

When the image finally arrives, the browser recalculates the layout to integrate it. All content below shifts abruptly downward. This visual shift is measured as Cumulative Layout Shift, one of the three pillars of Core Web Vitals.

What are the "incorrect uses" that Google is referring to?

Alan Kent's phrasing — "if they are used incorrectly" — primarily designates the absence of width and height attributes on <img> tags. This is the most frequent cause.

Other scenarios include images loaded via JavaScript without space reservation (poorly implemented lazy loading), web fonts that modify line height, or ad banners dynamically injected without a dimensioned container. But the basic error remains the neglect of dimensions.

Does CLS really impact Google rankings?

Yes, since the Page Experience Update, CLS has been part of the ranking signal — but its relative weight remains modest compared to content relevance. Google has said it openly: a disastrous CLS will not tank a well-positioned page if it perfectly matches search intent.

That said, between two pages of equivalent quality, the one displaying better CLS will have an advantage. And most importantly, poor CLS degrades actual user experience: bounce rate, engagement, conversions. The indirect impact can be severe.

  • Specifying width and height on each <img> tag is mandatory to avoid CLS.
  • The browser uses the intrinsic ratio (width / height) to reserve space, even if the image is resized via CSS.
  • Lazy-loaded images must also have explicit dimensions — lazy loading does not exempt from this rule.
  • CLS is a weak ranking signal, but its UX impact is measurable on business metrics.
  • High CLS will be visible in the Core Web Vitals report in Search Console and may trigger an alert if the "Good" threshold is not met.

SEO Expert opinion

Is this statement consistent with real-world observations?

Absolutely. PageSpeed Insights audits continue to point out images without dimensions as the number one cause of CLS on the majority of analyzed sites. This is not new — Google has recommended specifying width and height since 2020.

What is striking is that this elementary practice remains overlooked. Poorly configured CMS platforms, visual builders that generate HTML without dimensions, developers unaware of intrinsic ratio: the real-world situation shows that regular reminders from Google are still necessary. Let's be honest — if Alan Kent is bringing it up again, it's because the problem persists at scale.

What nuances should be added to this statement?

Google's statement is correct but incomplete. Images are only one contributor among many to CLS. Dynamic ad banners, embeds (YouTube, Twitter), poorly loaded web fonts, elements injected by JavaScript — all of this can generate layout shift, sometimes far more severe than that caused by a simple image.

Moreover, certain images cause no CLS at all even without dimensions — those above the fold and loaded with priority, for example, or those whose parent container has a fixed height defined in CSS. The integration context matters as much as the HTML attributes.

Caution: Adding width and height is not sufficient if your images are served in different formats (srcset, picture) without ratio consistency. Verify that the intrinsic ratio remains identical for all variants, otherwise the browser will still recalculate the layout.

In what cases does this rule not apply?

If an image is positioned with position: absolute or position: fixed, it exits the normal flow and generally does not cause CLS, even without dimensions. But this is a marginal case.

CSS background images (background-image) do not trigger CLS either, since they do not modify the calculated height of the container — provided that container has an explicit height. If the container has no defined height, it will be empty until the image loads… but this will not count as CLS in the strict sense (just degraded UX).

Practical impact and recommendations

What should you concretely do to fix image-related CLS?

Add the width and height attributes to all <img> tags in your templates. These values must correspond to the intrinsic dimensions of the source file, not the final display size.

Example: if your image is 1200×800 pixels and you display it at 600px wide via CSS, you write <img src="photo.jpg" width="1200" height="800" style="max-width:100%; height:auto;">. The browser calculates the ratio (1200/800 = 1.5) and reserves space proportionally to available width.

For responsive images with srcset or <picture>, ensure that all variants have the same ratio. If you serve a 16:9 image on desktop and 4:3 on mobile, the browser cannot anticipate correctly — you will have CLS at the breakpoint change.

What errors should you avoid during implementation?

Never let a CMS or page builder insert images without dimensions. WordPress, for example, automatically adds width and height since version 5.5 — but only if the theme does not override these attributes. Check your theme and plugins.

Avoid native lazy loading (loading="lazy") on above-the-fold images. The browser will load them anyway, but with unnecessary delay that can paradoxically increase CLS if the initial render does not properly reserve space.

Watch out for images served via CDN with on-the-fly transformation (Cloudinary, Imgix, etc.). If the generated URL changes dimensions without the HTML being updated, you create an inconsistency. Automate synchronization between actual dimensions and HTML attributes.

How do you verify that your site is compliant?

Run a PageSpeed Insights audit on your main pages. The "Avoid large layout shifts" section will explicitly list elements responsible for CLS, with their measured contribution.

Also use Lighthouse locally (via Chrome DevTools) to test under controlled conditions. Enable 4G throttling simulation to see how CLS behaves with a slow connection — that's often where problems become visible.

Finally, check the Core Web Vitals report in Search Console. If a significant portion of your URLs is marked "Needs improvement" or "Poor" for CLS, the problem is systemic. Prioritize the most-used templates (homepage, product sheets, blog articles).

  • Add width and height to all <img> tags with the intrinsic dimensions of the source file.
  • Verify that all responsive variants (srcset, picture) share the same aspect ratio.
  • Do not lazy-load above-the-fold images — load them with priority using fetchpriority="high" if possible.
  • Audit images injected by JavaScript (sliders, galleries) and reserve space before injection.
  • Test pages with PageSpeed Insights and Lighthouse with 4G throttling.
  • Monitor the Core Web Vitals report in Search Console to detect regressions.
  • Automate synchronization between actual dimensions and HTML attributes if you use a CDN with transformation.
Fixing image-related CLS is not technically complex — it's a matter of rigor in HTML integration. But on large-scale sites, with multiple CMS platforms, custom themes, and development teams, achieving compliance can become a substantial project. If your site shows persistent CLS despite spot fixes, a structural audit by a specialized SEO agency can identify root causes and establish a continuous monitoring process to prevent regressions.

❓ Frequently Asked Questions

Les attributs width et height ralentissent-ils le chargement de la page ?
Non, au contraire. Ils permettent au navigateur de réserver l'espace avant le téléchargement de l'image, ce qui accélère le rendu initial et évite les recalculs de mise en page. L'impact sur la performance est strictement positif.
Faut-il mettre width et height même si je redimensionne l'image en CSS ?
Oui, absolument. Le navigateur utilise le ratio intrinsèque (width / height) pour calculer l'espace à réserver, même si la taille finale est définie par CSS. C'est le ratio qui compte, pas les valeurs absolues.
Le lazy loading natif dispense-t-il de spécifier les dimensions ?
Non. Le lazy loading retarde le téléchargement, mais le navigateur a toujours besoin de connaître les dimensions pour réserver l'espace. Sans dimensions, vous aurez du CLS au moment où l'image lazy-loadée entre dans le viewport.
Comment gérer les images dont les dimensions varient selon le breakpoint ?
Utilisez picture avec plusieurs sources, mais assurez-vous que toutes les variantes partagent le même ratio d'aspect. Si les ratios diffèrent, le navigateur ne pourra pas anticiper correctement et vous aurez du CLS au changement de viewport.
Un CLS élevé peut-il faire chuter mes positions Google ?
Directement, l'impact est faible — Google priorise la pertinence du contenu. Mais un mauvais CLS dégrade l'UX, ce qui peut affecter engagement, taux de rebond et conversions. L'impact SEO indirect peut être significatif sur le long terme.
🏷 Related Topics
Domain Age & History Images & Videos Web Performance

🎥 From the same video 10

Other SEO insights extracted from this same Google Search Central video · published on 06/05/2022

🎥 Watch the full video on YouTube →

Related statements

💬 Comments (0)

Be the first to comment.

2000 characters remaining
🔔

Get real-time analysis of the latest Google SEO declarations

Be the first to know every time a new official Google statement drops — with full expert analysis.

No spam. Unsubscribe in one click.