🚀 Launch countdown

9 December 2026

PageSpeed

Image Elements Have Explicit Width and Height

Image elements lacking explicit width and height attributes.

Why it matters

Images without width and height attributes can cause layout shifts as they load, degrading Cumulative Layout Shift and page stability.

How to fix it

  1. Add width and height attributes matching each image’s natural aspect ratio.
  2. Keep width and height attributes for aspect ratio even when CSS sizes the image responsively.
  3. Update image templates so new components include explicit dimensions.

Where to find it

This finding is reported in the PageSpeed tab, and appears in Findings under the matching severity.

A term you don't recognise is defined in the glossary.

Other pagespeed findings

Findings library, by category.