Feedback

font-display: swap and web font loading

Updated

Up to Lighthouse 12 the finding was called Ensure text remains visible during webfont load; Lighthouse 13 shows it as the insight Font display. It appears when a page uses a web font without telling the browser what to show while the font file is still downloading. By default, most browsers hide the text for up to three seconds and then fall back, which means a visitor on a slow connection stares at empty space where the headline should be. The font-display descriptor fixes that in one line. Done carelessly, though, the fix trades invisible text for a visible jump when the real font arrives. This guide covers the values, the preload and the sizing trick that avoids both problems.

From PerfDelta's measurements: In real-user field data (phone, 75th percentile), 63% of 37,539 websites have a good First Contentful Paint and 11% a poor one. The median is 1515 ms, with the middle half between 1122 ms and 2149 ms. More in the data section below.

Font display: the Lighthouse 13 insight

In Lighthouse 13, and so in PageSpeed Insights, this audit appears as the insight Font display. It replaces "Ensure text remains visible during webfont load" (Lighthouse source code, replacesAudits in core/audits/insights, version 13.5, retrieved 17 October 2026). It lists web fonts whose font-display value lets text stay invisible while the font loads. The fixes below apply under both names.

What happens when a web font loads

The browser discovers the font file only after it has parsed the CSS that references it, so the font is always one of the last critical resources to arrive. While it waits, the browser has to decide: render the text in a fallback font (and re-render later), or render nothing. font-display controls that decision for each @font-face rule:

ValueBlock periodSwap periodEffect
autobrowser defaultbrowser defaultusually like block: text hidden up to three seconds
blockshort (about three seconds)infinitetext hidden, then swapped whenever the font arrives
swapextremely short (≤ 100 ms)infinitefallback text immediately, swapped whenever the font arrives
fallbackvery short (about 100 ms)short (about three seconds)fallback text almost immediately; late fonts are not swapped in
optionalvery shortnonethe font is used only if it is already available; otherwise the fallback stays

The Lighthouse 13 insight lists web fonts with auto (which also applies when the descriptor is missing), block or fallback whenever the font download kept text hidden for some time. Only swap and optional pass reliably (source code of the insight). The older audit still accepted fallback.

Which value to use

How to fix the finding

1. Self-hosted fonts: add the descriptor

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

Use WOFF2 only; every current browser supports it and it is the smallest format. A variable font replaces several weight files with one.

2. Google Fonts: add the display parameter

<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap" rel="stylesheet">

Without &display=swap the generated CSS uses the default and Lighthouse reports the finding. Better still, download the font files and self-host them: that removes two external origins from the critical path and gives you control over caching. The preconnect guide covers the interim option of preconnecting to fonts.gstatic.com.

3. Preload the fonts used above the fold

<link rel="preload" href="/fonts/inter-var.woff2" as="font" type="font/woff2" crossorigin>

Preloading starts the download before the CSS is parsed, which shortens the time the fallback is visible and often means the font arrives before the first paint. Preload only the one or two files the first screen needs; each preload competes with the LCP image.

4. Match the fallback font to avoid layout shifts

The swap itself is not the problem; the size difference between fallback and web font is. If the fallback renders wider or taller, every line wraps differently and the whole page jumps, which shows up in Cumulative Layout Shift. The size-adjust, ascent-override, descent-override and line-gap-override descriptors tune a local fallback to the same metrics:

@font-face {
  font-family: "Inter Fallback";
  src: local("Arial");
  size-adjust: 107%;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
}
body { font-family: "Inter", "Inter Fallback", sans-serif; }

Chrome and Firefox support all four descriptors; Safari supports size-adjust since version 17 but not yet the override descriptors (MDN compatibility data), so the match there is close rather than exact. The right percentages depend on the font pair. Tools that compute them from the font files exist, and frameworks such as Next.js generate this block automatically with next/font.

5. Subset and limit the fonts

A font family with four weights in two styles is eight files. Most pages need two. Subset to the character ranges you use (Latin only, for example) and use a variable font where available. Fewer and smaller files arrive sooner, whatever the display value.

Platform notes

Frequently asked questions

Is font-display: swap always the best choice?

It is the safe default for readability. For body text on content sites, optional avoids the swap and any layout shift at the cost of possibly showing the fallback on the first visit.

Does font-display: swap cause layout shifts?

It can, when the fallback font has different metrics. A size-adjusted fallback font, defined with size-adjust and the override descriptors, removes the shift.

Why does the finding still appear after I added display=swap to Google Fonts?

Another stylesheet is probably loading fonts without it, often from a theme, a plugin or an embedded widget, or a font uses fallback. The finding lists the exact font URLs.

Should I preload all my fonts?

No. Preload the one or two files used above the fold. More preloads delay the LCP image and the CSS.

What PerfDelta's measurements show

In real-user field data (phone, 75th percentile), 63% of 37,539 websites have a good First Contentful Paint and 11% a poor one. The median is 1515 ms, with the middle half between 1122 ms and 2149 ms.

PerfDelta does not store the font-display setting as a metric of its own. Fonts that keep text invisible while they load delay First Contentful Paint, so it is shown here as the closest measured metric.

By industry, the median ranges from 1233 ms in Media and publishing to 2021 ms in Education.

Data as of November 30, 2026, recalculated daily. Source: PerfDelta's own measurements (Chrome UX Report and Lighthouse); details in the website speed statistics and the methodology.

Thresholds and sources

Sources:

All sources retrieved on November 16, 2026. Thresholds and documentation change; the linked page is authoritative.

Test your site

Run a free scan to see whether this applies to your pages, on mobile and desktop, with lab and field data side by side.

Run a free test

A free account saves your tests and shows how your values change from one test to the next. Website performance monitoring with field data and alerts starts with the Solo plan.

Related audits