turbotobias.com

Faster on phones: no jumping text, 44 kB less before the first photo

Photos keep their space, the first one comes in its right size, and less code and font load before it, so the page stops jumping and paints sooner on phones.

layout shift on a project page
0.02 0.71
compressed code on the home page
106 kB 130 kB
font before the first photo
53 kB 73 kB

What changed

  • Every photo keeps its size, so text doesn't jump
  • The first photo first, in the size the screen needs
  • Carousels, confetti and toasts load when used
  • All CSS in the page, nothing holds up the first paint

What it taught me

Find what the metric is really timing

Lighthouse said the largest paint was the footer's photo, hidden under the page. Loading it only near the page's end moved the measure to what a visitor really sees first. Check what a metric times before tuning anything else.

Want changes like this in your product?

I build and ship them by the month. You say what, I build it, and you see it working every week.

turbotobias.com ↗