Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Fonts causing invisible text (FOIT): how to find and fix it

SEO-261Low impactOther toolBy FunnelGuardPublished Updated
On this page

What this issue is

A web font is a font file your page downloads, instead of using one already on the visitor's device. While it downloads, the browser has to decide what to show. By default many browsers hide the text for a short time (commonly up to about three seconds) and then swap it in. That blank period is the flash of invisible text, or FOIT.

Why it costs you leads or sales

If your headline, offer or button label is invisible, a visitor on a slow connection sees an empty page. Some will leave before the text appears. The effect is small on fast connections and bigger on mobile networks, which is why the business impact is rated low, but it hits the first impression of your landing pages.

It also affects page experience. Late text can delay the largest content paint (LCP) when the biggest element is a heading. Swapping fonts late can also shift the layout (CLS) if the fallback and web font differ in size.

How FOIT loses the first impression
  1. Page requestedHTML and CSS arrive
  2. Font downloadingBrowser hides text while waiting
  3. Headline unreadableVisitor sees a blank hero
  4. Click on CTASome visitors leave first

The visitor arrives, but the text is hidden until the font file arrives.

Blank text while the font loads

The page is there, but the words are not until the font file arrives.

How to check if your site has it

Check for FOIT in your browser
  1. Throttle the network

    In Chrome, open DevTools (F12), go to the Network tab and set throttling to Slow 4G or Fast 3G. Hard reload the page with Ctrl+Shift+R (Cmd+Shift+R on Mac).

  2. Watch the first seconds

    Record the load in the Performance panel or just watch the page. If headings and paragraphs are blank, then pop in, you have FOIT.

  3. Read your CSS

    Search your stylesheets for @font-face. Check whether each rule has font-display. Missing or block is the usual cause.

  4. Check Google Fonts links

    If you load fonts from fonts.googleapis.com, look for display=swap in the URL.

  5. Run Lighthouse

    In DevTools, open Lighthouse and run a mobile report. The audit 'Ensure text remains visible during webfont load' tells you which font files are affected.

How to fix it

The core fix is the same everywhere: tell the browser to show fallback text immediately, and make the web font arrive sooner. Pick swap for headings and body text you want in your brand font. Pick optional if you would rather avoid any layout shift and accept that a slow first visit may keep the fallback.

font-display values and what they do
ValueBehaviourBest for
blockHides text for a short period, then swapsRarely; icon fonts at most
swapShows fallback at once, swaps when the font loadsMost headings and body text
fallbackVery short hidden period, then fallback, limited swap windowA balance of speed and stability
optionalUses the web font only if it loads almost instantlyAvoiding layout shift
@font-face with font-displaycss
@font-face {
  font-family: 'Brand Sans';
  src: url('/fonts/brand-sans.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: 'Brand Sans', Arial, sans-serif;
}
Preload the key font and use display=swap on Google Fontshtml
<link rel="preload" href="/fonts/brand-sans.woff2" as="font" type="font/woff2" crossorigin>

<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">
Apply the fix on your platform
  1. Check your theme or builder

    Many themes and page builders have a font setting such as 'Font display' under their performance or typography options. Set it to swap. The exact menu depends on your theme.

  2. Host fonts locally if you can

    Use your theme's local font option or a font-hosting plugin, then add font-display: swap in Additional CSS (Appearance > Customize > Additional CSS) if the theme does not.

  3. Clear caches

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

Extra steps that make the swap smoother
  1. Pick a close fallback

    Choose a system font with similar proportions in your font-family stack so the swap does not move the layout much.

  2. Adjust fallback metrics

    For fine control, use size-adjust, ascent-override and descent-override in an @font-face rule for the fallback font. This is optional.

  3. Cut the number of weights

    Each weight and style is a separate file. Keep only those you use.

  4. Self-host where possible

    Hosting fonts on your own domain saves a connection to a third party.

Font loading before and after

Before

  • @font-face has no font-display
  • Headline blank until the font arrives
  • Several font weights loaded
  • Lighthouse warns about text visibility

After

  • font-display: swap on every font
  • Fallback text readable straight away
  • Key font preloaded, fewer weights
  • Lighthouse audit passes

How to confirm it's fixed

Confirm the fix
  • Throttle to Slow 4G, hard reload, and see text on screen immediately
  • Lighthouse no longer reports 'Ensure text remains visible during webfont load'
  • The Network tab shows the font file loading from the correct URL with a 200 status
  • The swap does not visibly jump the layout or push the button down
  • You tested on a real phone as well as desktop

How to prevent it happening again

Keep it from coming back
  • Add font-display to any new @font-face rule or font embed
  • Check new fonts and weights before they go live
  • Re-run Lighthouse after theme, builder or plugin updates
  • Keep a short list of approved fonts and weights
  • Review the Core Web Vitals report in Google Search Console for LCP and CLS changes

How FunnelGuard handles this

FunnelGuard does not check for FOIT or font loading today. It could be a future check, but it is not available now, so do not rely on FunnelGuard to tell you about it.

What FunnelGuard does cover nearby is whether your real customer journeys still work. A robot visitor runs your lead forms, checkouts and buttons on a schedule, checks each step and the tracking hits, and sends one alert with a screenshot if a journey breaks. If a font problem leaves a key button unreadable to the point the journey fails, you may see the failure, but the tool will not tell you the font is the cause.

To watch for FOIT yourself, run Lighthouse or PageSpeed Insights on your key landing pages after each design change, and keep an eye on LCP and CLS in Google Search Console. A free FunnelGuard plan (1 site, 2 journeys, daily checks, no card) is a good way to monitor the journeys themselves.

Questions people ask

What is FOIT?

FOIT stands for flash of invisible text. The browser hides text while a custom web font downloads, so the page looks blank until the font arrives or a timeout passes. It is fixed by showing a fallback font in the meantime.

Why is my text invisible for a second when the page loads?

Most likely a custom web font is still downloading and your @font-face rule lacks font-display: swap. The browser hides the text until the font is ready. Add the descriptor and the text shows in a fallback font straight away.

How do I fix invisible text while fonts load?

Add font-display: swap to each @font-face rule, or add &display=swap to your Google Fonts URL. Then preload the one or two fonts used above the fold and choose a similar fallback font.

What is the difference between FOIT and FOUT?

FOIT hides the text until the web font loads. FOUT shows a fallback font first and then switches to the web font. FOUT is usually preferred because visitors can read the page immediately.

Should I use font-display swap or optional?

Use swap if you want your brand font to always appear and can accept a small shift when it loads. Use optional if you want to avoid layout shift, knowing a slow first visit may keep the fallback font.

Does FOIT hurt SEO?

Not directly as a ranking rule, but it can slow the largest content paint and cause layout shifts, which are part of page experience metrics. It also hurts first impressions on slow mobile connections.

How do I test for FOIT?

Open Chrome DevTools, throttle the network to Slow 4G, and hard reload the page. If text is blank and then appears, you have FOIT. Lighthouse also flags it as 'Ensure text remains visible during webfont load'.

Does FunnelGuard detect FOIT?

No. FunnelGuard does not check for font loading problems yet; it is a possible future check. It does monitor your funnels, tracking and test leads, so use Lighthouse or PageSpeed Insights to watch fonts.

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.