Reserve image space before a webpage finishes loading

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.

Smart Solutions Framework website concept displayed on desktop, tablet and phone
SSF website-design concept from the existing project artwork. Illustrative screen content.

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.

Reserve image space before a webpage finishes loading — practical reference
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

Diagram of a mobile page reserving 360 by 240 pixels for a three-to-two image
SSF layout illustration: a 1200 by 800 image preserves its 3:2 ratio when displayed at 360 by 240 pixels.

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.

Scroll to Top