A font can appear to work on its designer’s laptop while every other visitor sees a substitute. The designer may have the typeface installed locally. Test a fresh browser profile on a device without the font and inspect the file the page actually uses.

Ship only the faces you use

Confirm the font license covers web distribution. Inventory the weights, styles and language coverage in the interface. Choose appropriate WOFF2 files or subsets and keep a fallback with compatible metrics. Test names and addresses containing characters outside your default language before removing glyph ranges.

Match the browser’s cross-origin request

When the CSS points at another hostname, fonts use a CORS fetch. Configure the CDN to return a suitable Access-Control-Allow-Origin response on the font request. If preloading a critical face, match its URL, type and crossorigin mode to the CSS fetch. Inspect the waterfall for a second transfer.

A preload for a font used on the first screen
<link rel="preload" href="https://assets.example.com/fonts/text-v2.woff2" as="font" type="font/woff2" crossorigin>

Observe the swap

Use a slow connection to inspect fallback appearance and layout movement. Font-display and fallback metrics determine what the reader sees while the file travels. Keep the filename versioned so an updated face and revised metrics can ship together without waiting for old browser entries to expire.

Sources & further reading

Reader questions

Should we preload every font in the family?

Preloading competes with other critical resources. Reserve it for faces the initial viewport actually needs and verify that earlier discovery improves rendering.