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.
| Value | What the browser does | Best for |
|---|---|---|
| auto | Browser default, usually hides text briefly | Nothing in particular; avoid relying on it |
| swap | Shows fallback text at once, swaps when the font loads | Body text and headings in most funnels |
| fallback | Very short hidden period, then fallback; swaps only if the font arrives soon | Text where a late swap would feel jarring |
| optional | Very short hidden period; may never use the web font on slow connections | Non-essential or decorative fonts |
| block | Hides text for up to about three seconds | Icon 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.
- Page requestHTML and CSS arrive
- Font downloadBrowser fetches the web font file
- Text hiddenHeadline and buttons are invisible
- Visitor reads offerDelayed or never happens
- 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
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.
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 containsfont-display.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 includesdisplay=swapalready; older code may not.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
@font-face {
font-family: "Inter";
src: url("/fonts/inter-regular.woff2") format("woff2");
font-weight: 400;
font-style: normal;
font-display: swap;
}<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">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.
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.Clear caches
Purge your caching plugin and CDN so the new CSS is served.
Use Shopify-hosted fonts where possible
Fonts chosen in the theme editor (Theme settings > Typography) are served by Shopify. Many current themes already output font-display: swap for them. Check the rendered page source to confirm.
Edit custom @font-face rules
If your theme loads a custom font, open Online Store > Themes > Edit code, search for
@font-facein the CSS or Liquid files, and addfont-display: swap;. Back up the theme first.
Prefer fixing it in the site code
Font CSS belongs in your theme or stylesheet. Injecting fonts through a Custom HTML tag can delay them and cause late restyling, so use GTM only if you have no other access.
Upload fonts in project settings
Go to Project settings > Fonts. For custom uploaded fonts, set the Font display option to Swap if it is available for the font.
Check Google Fonts
Fonts added via Webflow's Google Fonts integration are loaded by Webflow. If you add your own link, include
display=swapin the URL in Project settings > Custom code.
Add CSS in custom code
In your funnel or website settings, add custom CSS or head code with your
@font-facerule includingfont-display: swap, or use a Google Fonts link withdisplay=swap.Publish and test
Republish the page and run PageSpeed Insights on the live URL.
Use Wix fonts
Wix serves its own font library and manages loading for you. You usually cannot edit the font-display value for these fonts.
Custom uploaded fonts
Fonts you upload through the Wix font manager are also handled by Wix. If the audit flags them, check the result on the live site and consider using a Wix library font instead.
Use built-in fonts
Fonts chosen in Site Styles are loaded by Squarespace and its loading behavior is managed for you.
Custom fonts via CSS
If you add your own @font-face rule under Design > Custom CSS, include
font-display: swap;.
Edit every @font-face rule
Add
font-display: swap;to each rule in your stylesheet or build pipeline.Preload your main font
Add
<link rel="preload" href="/fonts/inter-regular.woff2" as="font" type="font/woff2" crossorigin>in the head for the one or two fonts used above the fold.Choose a close fallback
Pick a fallback font with similar width in your
font-familystack to reduce the visible jump when the swap happens.
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
- 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.
Related issues
- PRF-090Font file fails to load (404/CORS) falling back to system fontFix guide
- PRF-091FOIT: text invisible for seconds while fonts loadFix guide
- PRF-092FOUT causes visible restyle and layout shiftFix guide
- PRF-094Too many font weights/families loaded (8+ files)Fix guide
- PRF-095Icon font fails so icons render as squares/tofuFix guide
- PRF-097Google Fonts loaded from Google without consent (GDPR issue)Fix guide