Skip to content
English
States are missing37 / 71

Skeletons shaped like the content

What goes wrong

A spinner in an empty box says nothing about what is coming, and the page jumps when the content lands.

The fix

Draw grey blocks in the exact layout of the content, so the page keeps its shape while it loads.

Tell your AI

While loading, render a skeleton with the layout and sizes of the loaded content: blocks in var(--ds-surface-2) with var(--ds-radius-sm) (10px) corners, text bars at the real line height of var(--ds-line-height-md) (22px), and a slow shimmer; swap the content in at the same place without moving anything.

  • --ds-surface-2
  • --ds-radius-sm10px
  • --ds-line-height-md22px
Why AI-generated UIs all look the same: 12 rules that fix it

Stays in Lisbon

12–15 May · 2 guests

  • Casa do LargoAlfama · 4.7€112/ night
  • Miradouro RoomsGraça · 4.5€98/ night
  • Pátio AzulBaixa · 4.6€126/ night
The page jumped 88px when results arrived