Skip to content
FunnelGuard

Fix guide by FunnelsGuard

FOIT: text invisible while fonts load (how to find and fix it)

PRF-091Medium impactCould addBy FunnelGuardPublished Updated
On this page

What this issue is

A web font is a font file your site downloads, instead of using one already on the visitor's device. While it downloads, the browser must decide what to show. Many browsers hide the text for a short time (commonly up to about three seconds) and then switch to a fallback if the file is still not there. That blank period is FOIT, the flash of invisible text.

Why it costs you leads or sales

Visitors judge a page in the first moments. If your headline, price or button label is invisible, they see an empty page and may leave before the font arrives. On slow mobile connections the wait is longest, and that is where much ad traffic lands.

How FOIT loses a visitor
  1. Ad clickVisitor lands on your page
  2. Font downloadingBrowser hides all text
  3. Read headlineNothing to read yet
  4. Click buttonLabel invisible
  5. Lead or saleVisitor has left

The break happens before any text is readable.

Time until text is readableExample numbers
Time until text is readable (example)Text hidden until font loads: 3.2 seconds; Fallback shown first (swap): 0.9 seconds0123.20.9Text hidden until fon…Fallback shown first …seconds

Example: on a slow connection, a page that hides text waits for the font, while a page with a fallback shows text at once.

How to check if your site has it

Test for invisible text
  1. Throttle the network

    Open Chrome DevTools, go to the Network tab and set throttling to Slow 4G (or Fast 3G). Reload with the cache disabled.

  2. Record the load

    In the Performance tab, start a recording with reload and look at the filmstrip. Frames with blank space where text belongs show FOIT.

  3. Inspect the CSS

    In the Network tab filter by Font, then search your CSS for @font-face. Check each rule for a font-display line.

  4. Run a lab test

    Run Lighthouse or PageSpeed Insights. The audit "Ensure text remains visible during webfont load" lists fonts that block text.

  5. Check key pages

    Repeat on your landing pages, checkout and form pages, since they may load different fonts.

How to fix it

@font-face with font-displaycss
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: "Inter", Arial, sans-serif;
}
Preload the main font filehtml
<link rel="preload" href="/fonts/inter-400.woff2" as="font" type="font/woff2" crossorigin>
Apply it on your platform
  1. Check theme or builder font settings

    Many themes and page builders have a font-display or "load fonts locally" option in their performance or typography settings. Set it to swap if available. Menu names vary by theme.

  2. Or add CSS

    If you host fonts yourself, add font-display: swap to the @font-face rules in your child theme stylesheet or Appearance > Customize > Additional CSS.

  3. Google Fonts

    If a plugin or theme loads Google Fonts, make sure the URL includes &display=swap.

Font loading behaviour

Before

  • No font-display set
  • Headline and buttons blank for seconds
  • Font file requested late

After

  • font-display: swap or optional
  • Fallback text readable straight away
  • Main font preloaded

How to confirm it's fixed

Fix check
  • Reload on Slow 4G with cache disabled: text appears before the font finishes
  • Network tab shows the font file with a 200 status
  • Every @font-face rule has a font-display value
  • Lighthouse no longer lists the text-visibility audit
  • Buttons and form labels are readable on first paint
  • Checked on a real phone

How to prevent it happening again

Habits that keep text visible
  • Make font-display a required line in your CSS standards
  • Limit yourself to one or two families and a few weights
  • Use WOFF2 and preload only the font used above the fold
  • Re-run Lighthouse after theme, plugin or builder updates
  • Add a font test to your release checklist for landing pages

How FunnelGuard handles this

Questions people ask

Why is my text invisible while the page loads?

Your browser is probably hiding text until a custom web font downloads. This is called FOIT. Adding font-display: swap to your @font-face rules makes the browser show fallback text straight away.

What is FOIT in web design?

FOIT stands for flash of invisible text. The browser reserves space for text but draws nothing until the web font is ready, so visitors briefly see blank areas where headlines and buttons should be.

How do I fix FOIT?

Add font-display: swap or optional to every @font-face, preload your main WOFF2 font, reduce the number of font files and choose a similar fallback font. Then test on a throttled connection.

Does font-display: swap fix invisible text?

Yes. With swap, the browser shows fallback text immediately and replaces it when the web font arrives. The trade-off is a possible visible restyle or small layout shift when the swap happens.

How long does FOIT last?

It depends on the browser and connection. Many browsers hide text for up to about three seconds before using a fallback, and longer if the font download is still pending on some setups. Slow mobile networks make it worse.

How do I test for FOIT?

In Chrome DevTools, throttle the network to Slow 4G, disable cache and reload while recording in the Performance tab. Blank frames where text should be indicate FOIT. Lighthouse also reports fonts that block text.

Does Google Fonts cause FOIT?

It can if the stylesheet link lacks &display=swap. Add that parameter to the Google Fonts URL, or self-host the fonts and set font-display in your own CSS.

Does FunnelGuard detect FOIT?

No. FunnelGuard does not check for FOIT yet. It monitors journeys, tracking hits and lead delivery, so use Lighthouse or DevTools to test font loading.

Does FunnelGuard catch this?

Could add

Not checked yet: could be added to FunnelGuard.

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.