Important
LCP Image Dimensions
Why it matters
Explicit width and height let the browser reserve space for the image before it loads, so the layout does not shift.
What we check
Whether the first (hero) image has explicit width and height attributes to prevent layout shift.
How to fix
- 1 Add width and height attributes to your hero image.
- 2 Example: <img src="..." width="1200" height="630">.
- 3 This prevents Cumulative Layout Shift (CLS) and speeds up rendering.