shibro
Show the version of “Images reserve their space before they load”

Performance · SU-192

Images reserve their space before they load

Flip between the version shibroUI flags and the one it ships. The marks and callouts show what changes.

  • Before it loads no space reserved
  • Before it loads dashed 16 / 9 box
  • After it loads pushed down by the image
  • After it loads unchanged · 16 / 9 box

What changes

Bad
With no width, height or aspect-ratio, the text sits at the top at 0.2s and drops by the image’s height at 1.4s.audit.js: SU-192 warn: no width/height attributes or aspect-ratio, so the page jumps when it loads
Good
The slot holds a 16 / 9 box from the start, so the text is in the same place at 0.2s and at 1.4s.

The rules

  • SU-192

    Reserve space; nothing jumps. Images, video and embeds carry width/height attributes or an aspect-ratio. Async content renders into a slot sized for it (a skeleton, SU-157). Banners never push content down after first paint.