auto
- Block period
- Browser decides
- Swap period
- Browser decides
- web.dev timings
- Varies by browser
font-display sets how text renders while a web font loads. Block and swap periods for each value, which to pick for body text and branding, and how to test it.
font-display is a CSS descriptor on @font-face that controls what users see while a web font loads: invisible text, a fallback font, or a swap once the font arrives. It takes auto, block, swap, fallback or optional. swap shows text soonest and eventually uses the web font, while optional skips a late font entirely.
Four quick questions, then a straight answer.
From your answers, this is quietly costing you traffic and nobody has the hours to chase it. Scaplet finds every affected page, drafts the fixes and tracks how AI answers mention you.
A data platform shipped 46 fixes without a ticket.
This looks handled. Re-check after a redesign, a migration or a big content push; that is when it breaks.
Your site is small and you have the time. Work through the steps on this page, starting with the pages that get the most traffic.
autoblockswapfallbackoptionalMDN gives no exact durations itself, and notes that in Firefox two preferences set the short and extremely small periods. web.dev adds that Chromium and Firefox block text for up to 3 seconds by default, while Safari blocks indefinitely, which is what you get if you never set the property.
font-display: swapfont-display: optionalsize-adjustwoff2 format@font-face {
font-family: "BrandDisplay";
src: url("/fonts/brand-display.woff2") format("woff2");
font-display: swap; /* text visible at once, swap if late */
}
@font-face {
font-family: "BodyText";
src: url("/fonts/body.woff2") format("woff2");
font-display: optional; /* skip the font if it is late, no layout shift */
size-adjust: 105%; /* narrows the fallback/web font size gap */
}In DevTools, set the Network panel to a slow preset and disable cache so the font arrives late.
Reload and see whether text is invisible, shown in a fallback, or swapped. Compare with what you chose.
Look for text jumping when the font arrives. If it does, consider optional, a closer fallback or size-adjust.
If the font is found late, see preload. Third-party hosts also benefit from preconnect.
# Pull your stylesheet and look for @font-face rules without font-display
curl -s https://example.com/styles.css | grep -o '@font-face[^}]*}' | grep -vc 'font-display'
# 0 means every @font-face rule sets it. Check inline <style> blocks too.web.dev says you can combine them, such as swap for branding and optional for body text, and that icon fonts fit these strategies poorly, so it recommends replacing them with SVGs. For the audit view of text that stays hidden while fonts load, see web fonts blocking text.
2 questions people ask next, answered from the sources on this page.
auto, which leaves the strategy to the browser. web.dev says Chromium and Firefox block text for up to 3 seconds by default, while Safari blocks indefinitely.
It can. optional avoids font-swap shifts because a late font is not used. swap and block can shift when the font arrives, and size-adjust can narrow the difference between fallback and web font.
The free audit reads robots.txt, sitemaps, status codes, canonicals, redirects and structured data.