Instant estimate
Performance

Font loading

FOUT and FOIT

Font loading is how a page handles text while its web fonts download: show a fallback first and swap (FOUT), or hide the text until the font arrives (FOIT).

Hidden text is the worse experience, so most sites let the fallback show with `font-display: swap`.Source 1 The swap can make text jump, though, when the fallback is a different size.

That is fixable: a fallback font can be adjusted with `size-adjust` and similar settings to take the same space as the web font. Self-hosting fonts and preloading the most important one shorten the wait as well.Source 2

How Regular approaches it

Regular self-hosts fonts, preloads the main one and gives it a size-matched fallback. The swap happens, but you'd have to look closely to see it.

BenjaminWeb designer for sustainable and circular businesses

Sources and further reading

  1. font-display, MDN Web Docsdeveloper.mozilla.org
  2. Best practices for fonts, web.devweb.dev

Planning a website?

Get a price range in a minute with the instant estimate, or book a 15-minute intro call. Regular builds fast, light websites for sustainable and circular businesses, in Astro or Framer, whichever fits your team.

Book a 15 min introInstant estimate

Instant estimate