Web fonts are one of the most common causes of slow, jumping pages. A heading that appears late can delay the largest element on the page, and a fallback font that swaps for a different one can move the whole layout. Google measures these effects through Core Web Vitals, which affect how pages are evaluated in search.

This guide explains which Core Web Vitals fonts influence, the thresholds to aim for, and the font settings that have the biggest effect on each one.

Which Core Web Vitals fonts affect

  • Largest Contentful Paint (LCP): if the largest visible element is a block of text, a slow font delays it.
  • Cumulative Layout Shift (CLS): when a web font replaces a fallback with different metrics, text reflows and the page moves.
  • Interaction to Next Paint (INP): fonts rarely cause a slow response directly, but heavy font-related scripts that keep the main thread busy can.

Interaction to Next Paint replaced First Input Delay as a Core Web Vital in March 2024, so INP is the responsiveness metric to track today.

The thresholds to aim for

Google's "good" thresholds, measured at the 75th percentile of real page loads, are:

  • LCP: 2.5 seconds or less.
  • CLS: 0.1 or less.
  • INP: 200 milliseconds or less.

Lab tools such as PageSpeed Insights give a single test result, while field data reflects what real visitors experience. Use both, and treat the field data as the final judgement.

Choose the right font-display value

The font-display descriptor controls what visitors see while a web font loads. The most common values are:

  • swap: shows the fallback font straight away, then switches to the web font. It protects LCP, but it can cause a layout shift if the fallback is very different.
  • optional: uses the web font only if it arrives quickly, otherwise keeps the fallback for that visit. It avoids shifts well, at the cost of sometimes not showing the chosen font.
  • block: hides the text for a period while the font loads. Avoid it for body text, because text can stay invisible for a long time on slow connections.

For body text, swap or optional are the usual choices. Pair either one with a fallback whose metrics are close to the web font.

Example: a font setup that protects LCP and CLS

This example self-hosts a font, shows the fallback straight away, and matches the fallback's size so the layout moves less when the web font arrives. The adjustment values are examples, and you should measure your own fallback before using them:

@font-face {
  font-family: "Your Body Font";
  src: url("/fonts/your-body-font.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fallback for Your Body Font";
  src: local("Arial");
  size-adjust: 104%;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
}

body {
  font-family: "Your Body Font", "Fallback for Your Body Font", Arial, sans-serif;
}

The layout shift guide explains how to measure a fallback and choose these values.

Preload only the font that matters

If the main body font is needed at the top of the page, a preload hint lets the browser request it earlier. Preload one or two files at most, because preloading many fonts competes with other important resources. The hint looks like this, placed in the head of the page:

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

Self-host and subset

Self-hosting removes the extra connection to a third-party font server. Subsetting keeps only the characters you use, which reduces the file size. Use the woff2 format, which is compressed and supported by all current browsers. If your site needs several languages, subset by language rather than loading one large file for everything.

Measure before and after

  1. Run PageSpeed Insights on a representative page, and note LCP, CLS and INP.
  2. Make one font change at a time, so you can see its effect.
  3. Record the results, and check the field data after a few weeks.

The font performance guide covers loading strategies in more depth, and the Font Stack Tester helps you build a fallback with matched metrics.

How fonts fit into the loading sequence

A browser downloads the HTML, then the CSS, then the fonts that the CSS asks for. Font files are requested only once the browser knows which text needs them, so a font declared in a stylesheet that loads late will also load late. Keeping the critical CSS small, and declaring the body font early, lets the font start loading sooner. The browser can then show text in the fallback font while the web font is still in transit.

Variable fonts and file size

A variable font contains a range of weights in one file, so it can replace several static files. That can reduce the total number of font requests, but a variable file is often larger than a single static weight. Compare the total size for the weights you actually use. The variable fonts guide explains when one variable file is the better choice.

Third-party font services

Loading fonts from a font service is easy to set up, but each service adds a connection, and its files and stylesheet must arrive before the text can be drawn. Self-hosting gives you full control over caching, file size and timing. Whichever you choose, check the performance impact in both lab and field data, and avoid loading more families than the design needs.

What the PageSpeed report shows about fonts

PageSpeed Insights reports several audits that relate to fonts. The Font display audit flags text that waits for a font, and the Render-blocking requests audit lists stylesheets that delay the first paint. The Network dependency tree shows which requests wait for others, and the LCP breakdown shows how much of the delay comes from loading the resource versus rendering it. Use these audits to decide which change to make first.

Common mistakes

  • Loading many font weights and styles that the page never uses.
  • Preloading every font file, which slows down the resources that matter most.
  • Using block for body text, which hides content on slow connections.
  • Judging performance on one lab test instead of the field data.

Checklist

  • Only the weights and styles the page uses are loaded.
  • Font files are self-hosted, subset and in woff2 format.
  • font-display is swap or optional for body text.
  • The fallback has metrics close to the web font.
  • At most one or two font files are preloaded.
  • LCP, CLS and INP are checked in both lab and field data.