Speed

Images reserve their space before loading

performance.images-missing-dimensions

Why this matters

The browser cannot tell how tall these images will be until they have downloaded, so it draws the page without them and then pushes everything down when they arrive. That is the jump people experience as a page moving under their thumb.

Who fixes it

You can, usually

Roughly how long

Minutes

Care needed

Low risk to change

How to fix it

Add `width` and `height` attributes matching the image's real pixel dimensions. CSS can still resize it — the attributes only tell the browser the shape to reserve.

On your platform

WordPress

The block editor adds these automatically for images inserted from the Media Library, so the ones missing them are nearly always pasted into a custom HTML block, or placed by a page builder that writes its own markup. Re-inserting the image as a proper image block is quicker than editing the attributes, and it keeps working when the image is replaced.

Shopify

Current Shopify themes render images through the `image_tag` filter, which adds width and height for you. A missing pair therefore means a hand-written `<img>` in a custom section or snippet, or an app block — Online Store → Themes → Edit code and search the sections for `<img`.

Drupal

Images rendered through an image field and an image style get their dimensions automatically. The ones without are images placed into a body field through the editor, where the dimensions depend on what the editor wrote — so this is a content fix rather than a theme one.

Joomla

The editor's image dialog has Width and Height fields, and they are frequently cleared out by whoever inserted the image because the picture looked too big. Set them back to the file's real pixel size and use CSS to make it smaller; the attributes are what reserve the space, not what size it appears.

How we score it

Failing this check takes up to 12 points off your speed score. It is a fact about your site rather than a measurement, so it reads the same on every scan until you change something.

Does your site pass this one?

This check runs on every scan, along with the other 106. Free, no account, and you see the evidence for each result.

Check my site

Other speed checks

See all 107 checks