Web performance guidance on layout shifts · 24 November 2026
A webpage feels unstable when text and controls move as images arrive. Reserving the correct image proportions gives the browser useful layout information before the image has finished downloading.

Check dimensions as well as file size
Web performance guidance recommends supplying image dimensions so browsers can reserve space. Responsive styling must still preserve the intended proportions. Test the actual page at phone and desktop widths, including any gallery or banner change. Compressing an image can improve transfer size, but it does not by itself establish that the layout stays stable.
| Focus | Information to use | How to apply it |
|---|---|---|
| Image | Intrinsic width and height | Provide the browser with the aspect ratio. |
| Layout | Responsive display rules | Preserve proportions at different widths. |
| Interaction | Gallery and banner behaviour | Check shifts after the initial load too. |
Your next step
Review a representative page on a narrow screen and a slower connection. Measure layout behaviour before and after the change, and keep the test conditions recorded.
Technical reference: Web performance guidance on layout shifts.
Reserve the image space before it loads

A width-to-height ratio lets the browser reserve space for a responsive image. In this example a 1200 by 800 image displayed at 360 pixels wide needs 240 pixels of height. Test the actual layout on mobile so text does not jump when the photograph appears.
