Skip to content
FunnelGuard

Fix guide by FunnelsGuard

No font-display: swap on web fonts: how to find and fix it

PRF-093Low impactOther toolBy FunnelGuardPublished Updated
On this page

What this issue is

font-display is a CSS setting inside an @font-face rule. It tells the browser what to show while a custom font file is still downloading. Without it, most browsers use the default value, auto, which usually behaves like block. That means the text is invisible for a short period, then appears once the font is ready.

Common font-display values
ValueWhat the browser doesBest for
autoBrowser default, usually hides text brieflyNothing in particular; avoid relying on it
swapShows fallback text at once, swaps when the font loadsBody text and headings in most funnels
fallbackVery short hidden period, then fallback; swaps only if the font arrives soonText where a late swap would feel jarring
optionalVery short hidden period; may never use the web font on slow connectionsNon-essential or decorative fonts
blockHides text for up to about three secondsIcon fonts where a wrong glyph is worse than none

Why it costs you leads or sales

Your headline, offer and button text are what visitors read first. If they are invisible while a font loads, the page can look empty or broken, especially on slow mobile connections. Some visitors leave before the text appears.

What a visitor sees without font-display
  1. Page requestHTML and CSS arrive
  2. Font downloadBrowser fetches the web font file
  3. Text hiddenHeadline and buttons are invisible
  4. Visitor reads offerDelayed or never happens
  5. Click CTASome visitors leave first

The text step is where the page feels broken while the font downloads.

How to check if your site has it

Check your font loading settings
  1. Run a Lighthouse or PageSpeed Insights test

    Look for the audit named "Ensure text remains visible during webfont load". If it lists font URLs, they lack a suitable font-display value.

  2. Open your CSS and search for @font-face

    In Chrome, open DevTools, go to the Sources or Network tab and search all files for @font-face. Check whether each rule contains font-display.

  3. Check Google Fonts links

    Look at the URL of your Google Fonts stylesheet. If it has no display= parameter, add one. Current Google Fonts embed code usually includes display=swap already; older code may not.

  4. Throttle the network

    In DevTools, Network tab, set throttling to Slow 4G and reload. If text is blank for a moment before it appears, the font is blocking text.

How to fix it

Self-hosted font with font-display: swapcss
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
Google Fonts URL with display=swaphtml
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap" rel="stylesheet">
Add font-display by platform
  1. Check your theme or builder settings

    Many themes and builders have a font loading option. Look in the theme options, Elementor settings (Settings > Features, or Site Settings > Typography, depending on version) or your performance plugin. Set the font display to Swap where offered.

  2. Or add CSS yourself

    For self-hosted fonts, edit the @font-face rules in your child theme stylesheet and add font-display: swap;. Avoid editing a parent theme directly, as updates overwrite it.

  3. Clear caches

    Purge your caching plugin and CDN so the new CSS is served.

Text while the font loads

No font-display

  • Headline and buttons are invisible at first
  • Page can look blank on slow connections
  • Lighthouse reports the webfont audit

font-display: swap

  • Text shows at once in a fallback font
  • Web font replaces it when loaded
  • Lighthouse audit passes

How to confirm it's fixed

Confirmation checks
  • Every @font-face rule in the loaded CSS includes font-display
  • Google Fonts URLs contain display=swap
  • Lighthouse no longer lists the webfont visibility audit
  • On Slow 4G throttling, text appears before the font finishes loading
  • The swap does not cause a large layout jump on your key landing page
  • Caches and CDN were purged before testing

How to prevent it happening again

Add the font-display check to your launch checklist for new pages and theme changes. Re-run PageSpeed Insights after you add a font, switch themes or change a builder. If you self-host fonts, put font-display: swap in your base @font-face template so every new font inherits it. Keep the number of font files low, too, because fewer downloads means a shorter wait.

How FunnelGuard handles this

This issue is outside what FunnelGuard checks. FunnelGuard runs your customer journeys with a robot visitor and checks form steps, tracking hits and lead delivery. It does not audit CSS or font loading behavior. For this problem, use a page speed or front-end performance tool such as Lighthouse, PageSpeed Insights or WebPageTest.

Questions people ask

What does font-display: swap do?

It tells the browser to show text immediately in a fallback font, then swap to your web font once it has downloaded. This avoids invisible text while the font loads. You add it inside each @font-face rule.

Why is my text invisible while the page loads?

Your web font is probably still downloading and the browser is hiding text until it arrives. This happens when @font-face has no font-display value or uses block. Adding font-display: swap makes the text show straight away in a fallback font.

How do I add font-display: swap to Google Fonts?

Add &display=swap to the end of the Google Fonts stylesheet URL, for example css2?family=Inter:wght@400;700&display=swap. Current embed code from Google Fonts normally includes it already. Older links may need editing.

How do I add font-display: swap in WordPress?

Check your theme, page builder or performance plugin for a font display setting and choose Swap. If there is none, add font-display: swap to the @font-face rules in your child theme CSS. Then clear your caches.

Is font-display: swap bad for layout shift?

It can be. When the web font replaces the fallback, text can change size and move things around. Pick a fallback with similar proportions and preload your main font to reduce the jump.

Does font-display affect SEO or conversions?

It affects how fast text appears, which feeds into perceived speed and Core Web Vitals such as First Contentful Paint. The effect on conversions is usually small, but it can matter for mobile visitors on slow connections.

Should I use swap or optional?

Use swap when you want your brand font to always appear and can accept a brief restyle. Use optional for non-essential fonts, since the browser may skip the web font on slow connections and keep the fallback.

Can FunnelGuard detect a missing font-display?

No. This is outside what FunnelGuard checks. Use a performance tool such as Lighthouse, PageSpeed Insights or WebPageTest to find it.

Does FunnelGuard catch this?

Other tool

Needs a different kind of tool.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.