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.
- Page requestedHTML and CSS arrive
- Font downloadingBrowser hides text while waiting
- Headline unreadableVisitor sees a blank hero
- Click on CTASome visitors leave first
The visitor arrives, but the text is hidden until the font file arrives.
The page is there, but the words are not until the font file arrives.
How to check if your site has it
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).
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.
Read your CSS
Search your stylesheets for
@font-face. Check whether each rule hasfont-display. Missing orblockis the usual cause.Check Google Fonts links
If you load fonts from fonts.googleapis.com, look for
display=swapin the URL.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.
| Value | Behaviour | Best for |
|---|---|---|
| block | Hides text for a short period, then swaps | Rarely; icon fonts at most |
| swap | Shows fallback at once, swaps when the font loads | Most headings and body text |
| fallback | Very short hidden period, then fallback, limited swap window | A balance of speed and stability |
| optional | Uses the web font only if it loads almost instantly | Avoiding layout shift |
@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;
}<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">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.
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.
Clear caches
Purge your caching plugin and CDN so the new CSS is served.
Edit the theme font loading
Go to Online Store > Themes > Edit code. In theme.liquid or your fonts snippet, find the font_face filter or @font-face rules.
Add font_display
With Shopify's font_face filter, use
{{ font | font_face: font_display: 'swap' }}. For custom @font-face rules, addfont-display: swap;.
Check for font injection
GTM does not control fonts by default, but a Custom HTML tag may inject a Google Fonts link. Open Tags and look for fonts.googleapis.com.
Add display=swap
Edit that tag so the URL ends with &display=swap, then preview and publish.
Open font settings
Go to Site settings > Fonts. For each custom font, set the Font display option to Swap if your plan shows it.
Or add custom CSS
For uploaded fonts, check the option in the font settings. If not available, define the font via custom code in Site settings > Custom code.
Publish
Publish the site and retest.
Find where the font loads
Open the funnel or website in the builder and check Settings > Custom Code (header) for Google Fonts links or @font-face rules.
Add display=swap
Edit the link so it includes &display=swap, or add font-display: swap to your @font-face CSS. Save and publish.
Use standard site fonts
Wix manages font loading for fonts chosen in the editor, so you have limited control. Prefer fonts from the Wix font list.
Limit font count
Reduce the number of fonts and weights used, which shortens the hidden period.
Limit font families
Squarespace handles built-in fonts itself. Go to Website > Design > Fonts and keep the number of families and weights small.
Add CSS for custom fonts
For custom fonts you added yourself, include font-display: swap in your @font-face rule under Website > Design > Custom CSS.
Add font-display
Add font-display: swap to every @font-face rule.
Preload the key font
Preload only the one or two WOFF2 files used above the fold, with crossorigin set.
Serve WOFF2 and subset
Use WOFF2 and include only the character sets you need to keep files small.
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.
Adjust fallback metrics
For fine control, use
size-adjust,ascent-overrideanddescent-overridein an @font-face rule for the fallback font. This is optional.Cut the number of weights
Each weight and style is a separate file. Keep only those you use.
Self-host where possible
Hosting fonts on your own domain saves a connection to a third party.
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
- 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
- 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.