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.
- Ad clickVisitor lands on your page
- Font downloadingBrowser hides all text
- Read headlineNothing to read yet
- Click buttonLabel invisible
- Lead or saleVisitor has left
The break happens before any text is readable.
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
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.
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.
Inspect the CSS
In the Network tab filter by Font, then search your CSS for
@font-face. Check each rule for afont-displayline.Run a lab test
Run Lighthouse or PageSpeed Insights. The audit "Ensure text remains visible during webfont load" lists fonts that block text.
Check key pages
Repeat on your landing pages, checkout and form pages, since they may load different fonts.
How to fix it
@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;
}<link rel="preload" href="/fonts/inter-400.woff2" as="font" type="font/woff2" crossorigin>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.
Or add CSS
If you host fonts yourself, add
font-display: swapto the@font-facerules in your child theme stylesheet or Appearance > Customize > Additional CSS.Google Fonts
If a plugin or theme loads Google Fonts, make sure the URL includes
&display=swap.
Use the font_face filter
In theme code, use
{{ font | font_face: font_display: 'swap' }}to output the rule with swap.Preload the file
Add a preload link in theme.liquid using
{{ font | font_url }}.
Set font display
In Site settings > Fonts, check whether a font-display option is offered for custom fonts and set it to swap.
Reduce fonts
Remove unused weights so fewer files block text.
Avoid fixing fonts here
Injecting font CSS through a tag loads late and can make FOIT or restyling worse. Fix it in your site's CSS or theme instead.
Pick fewer fonts
Wix controls font loading itself. Use the fonts from its own library and limit styles. If text still hides, test again and contact Wix support.
Limit fonts
Under Design > Site Styles > Fonts, reduce the number of fonts and weights. For custom CSS font-face rules, add
font-display: swapin Custom CSS.
Add CSS
In the funnel or website Custom CSS or tracking code area, add
@font-facerules withfont-display: swap, or add&display=swapto Google Fonts links.
Add font-display
Add
font-display: swap(oroptionalfor non-critical fonts) to every@font-face.Self-host WOFF2
Serve WOFF2 files from your own domain with long cache headers and preload the one used above the fold.
Match fallback metrics
Use
size-adjust,ascent-overrideand similar descriptors on a fallback@font-faceto reduce layout jumps.
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
- 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
- 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.
Related issues
- PRF-093No font-display: swap on web fontsFix guide
- PRF-092FOUT causes visible restyle and layout shiftFix guide
- PRF-090Font file fails to load (404/CORS) falling back to system fontFix 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