Image elements do not have explicit width and height
In plain wordsImages have their size set, so the page does not jump.
When an image has no size set, the browser does not know how much room to leave. The text jumps down when the picture arrives, often just as someone is about to tap.
What it means
When an image tag does not say how big the image is, the browser cannot know how much room to leave. It lays out the text first, and when the image arrives, everything below it is pushed down. That is the jump people feel while a page loads.
Giving every image a width and a height lets the browser reserve the right space from the start. The numbers do not fix the image at that size: the stylesheet can still make it fluid. They only tell the browser its shape.
What causes it
- Images added by hand in HTML without the two attributes.
- A page builder or slider that writes its own image tags.
- Images inserted by a script after the page has loaded.
How to fix it
- Add width and height attributes to every image tag.
- Or set a width and an aspect ratio for images in the stylesheet.
<img src="plate.jpg" alt="Grilled fish">
<img src="plate.jpg" width="1200" height="800" alt="Grilled fish" style="max-width:100%;height:auto">
Check it yourself
Reload the page on a slow connection and watch whether the text moves when images appear.
Or run a free audit: it checks this and 53 other things on your page in about a minute, and shows the proof for each one.
How we test it
- What we look at
- Google's browser test for images without a set width and height.
- It passes when
- Every image has its size set. Not scored when the test does not run.
- What it is worth
- 2 of 148 points in rule book 0.5, in Mobile. A rule that cannot be checked on a page counts neither for nor against it.
Questions
Do the numbers have to match the size on screen?
No. They have to match the proportions of the image file. The browser works out the rest.
What about images set in CSS as backgrounds?
They take the size of their box, so give the box a height or an aspect ratio.
Sources
Where to read more, and where to check what this page says. Opened and read on 20 and 24 November 2026.
Also useful: what a good website score is, how we compare with PageSpeed Insights and the full rule book.
Does your website have this problem?
A free audit checks this and 53 other things, and shows the proof. About a minute, no email needed.