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
0.2 S
Northstar’s spring catalog is out. Twelve new layouts for small studios.
1.4 S
Northstar’s spring catalog is out. Twelve new layouts for small studios.
0.2 S
Northstar’s spring catalog is out. Twelve new layouts for small studios.
1.4 S
Northstar’s spring catalog is out. Twelve new layouts for small studios.
-
After it loads
pushed down by the image
-
After it loads
unchanged · 16 / 9 box
What changes
- Bad
- With no
width,heightoraspect-ratio, the text sits at the top at0.2sand drops by the image’s height at1.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 / 9box from the start, so the text is in the same place at0.2sand at1.4s.
The rules
-
SU-192
Reserve space; nothing jumps. Images, video and embeds carry
width/heightattributes or anaspect-ratio. Async content renders into a slot sized for it (a skeleton, SU-157). Banners never push content down after first paint.