Why Your Website's Text Flickers as It Loads, and How to Fix It

You open a website and, for a split second, the headline appears in a plain, ordinary font. Then it snaps into the real one. The words change shape, lines get longer or shorter, and the whole page shuffles before it settles.

Most visitors could not tell you what happened. They just get the sense that the site is a little unsteady. For a business, that is not the first impression you paid for. This guide explains what the flicker is, why it happens, and how a website can load its fonts without it.

The short version

  • A website’s fonts are files that have to download. Until they arrive, the browser has to decide what to show.
  • Many sites are set up to show a stand-in font straight away and swap to the real one when it arrives. That swap is the flicker you see.
  • The fix is a combination: host the fonts on the site itself, tell the browser to fetch them first, keep the number of font files small, and tell the browser to wait briefly for the real font instead of swapping.
  • Done well, the page appears once, in the right font, with nothing jumping.

What the flicker actually is

When a website uses its own fonts, rather than the ones already on your phone or computer, those fonts are separate files. The browser finds out it needs them while it is reading the page, then downloads them.

In the meantime it has two choices. It can show the text in a fallback font, one that is already on the device, and swap in the real font when it arrives. Or it can keep the text invisible for a moment while it waits.

Web developers have names for both. The first is often called a flash of unstyled text: the page shows, then changes. The second is a flash of invisible text: the page shows, but the words appear a moment later. Neither is a disaster. Both are noticeable, and the first one is far more common.

Why it matters for a business

It looks unfinished. Your fonts are part of your brand, in the same way as your logo and colours. A page that briefly shows the wrong font is a page that briefly shows the wrong brand.

It moves things. A fallback font is rarely the same width as the real one. When the swap happens, headlines rewrap, buttons shift and sections move down or up. If someone is about to tap something at that moment, they can tap the wrong thing.

Google measures the movement. One of Google’s three page experience measures is Cumulative Layout Shift, which scores how much a page jumps while it loads. A late font swap is one of the common causes. We cover all three measures in how fast should a business website be.

It happens most on phones. On a fast office connection, the font often arrives before anyone notices. On a phone, on mobile data, the gap is longer and the swap is obvious. That is where many of your visitors are.

What usually causes it

The default setting. A CSS setting called font-display tells the browser what to do while a font downloads. A common value is swap, which means “show a fallback straight away and swap later”. Many ready-made font embeds use it by default, including the standard copy-and-paste code from Google Fonts. It is a sensible default for keeping text readable, and it is exactly what produces the flicker.

Fonts from another server. When a site loads its fonts from a font service, the browser has to connect to that service before it can download anything. That adds a step, and the font arrives later than it would from the site’s own server.

Fonts discovered late. Browsers usually only learn about a font when they read the stylesheet. Unless the page tells them earlier, the font download starts later than it could.

Too many font files. Every family, weight and style is another file. A site using two families in four weights each can be asking for eight files before the text looks right.

How to load fonts without the flicker

This is the approach we use on the sites we build, and on this one.

1. Host the fonts on the site itself. The fonts come from the same place as the page, so there is no extra connection to make. It also means the site does not depend on another company’s service staying the same.

2. Tell the browser about them first. A short line in the page’s header, called a preload, tells the browser to start downloading the fonts straight away, before it has even read the stylesheet. By the time the text is ready to appear, the fonts are usually already there.

3. Keep the files few and small. One or two families, in a modern compressed format called WOFF2, and only the characters and weights the site actually uses. A variable font, one file that covers every weight, often replaces several separate files.

4. Ask the browser to wait for the real font. Setting font-display to block tells the browser to hold the text back for a short moment while the font arrives, then show it in the right font, once. Because the fonts are preloaded and small, that moment is usually too short to notice.

The MDN reference for font-display lists every option, and Google’s guide to font best practices covers the loading side in more depth.

The honest trade-off

There is no setting that is perfect in every situation, so it is worth being clear about what block means.

If a font file is slow to arrive, the browser keeps the text invisible for a short period, about three seconds in most browsers, and then shows a fallback rather than leaving the page blank. So the text is never hidden for long. But on a very slow connection, it can appear a little later than it would with swap.

That is why block only works well alongside the other three steps. With the fonts hosted on the site, preloaded and kept small, they almost always arrive within a fraction of a second, and visitors simply see the finished page.

You may notice that Google’s PageSpeed Insights sometimes suggests swap or optional instead. Those suggestions favour showing text as early as possible, even if it changes afterwards. Some sites choose optional, which shows the real font only if it arrives almost immediately and otherwise keeps the fallback for that visit, so nothing ever swaps. We prefer a page that appears once and looks right, and we use preloading and small files to keep the wait out of sight.

How to check your own website

You do not need any technical skill to spot the flicker.

  1. Open your site on a phone, on mobile data rather than wifi, in a private or incognito window so nothing is already saved.
  2. Watch the headline as the page appears. If the lettering changes shape or the lines rewrap, the fonts are swapping.
  3. Do the same on a desktop browser if you like. In Chrome, open the developer tools, find the Network panel, choose a slower connection such as “Slow 4G”, and reload. The slower load makes any swap easy to see.
  4. Run the page through PageSpeed Insights and look at the layout shift score. A high score with no ads or late images on the page often points to fonts.

How Isogun Labs handles fonts

We set fonts up this way on every site we build: hosted on the site, preloaded, kept to a small number of files, and set to wait for the real font instead of swapping. We have just applied the same treatment to this website, so its pages now appear in the right fonts from the first moment.

It is one of many small details that separate a site that feels carefully made from one that feels assembled. If you would like your site to load cleanly on every phone, look at our selected work, read about our services, or send a short brief through the contact page.

Frequently asked questions

Why does my website’s font change after the page loads?

Your site is most likely set to show a fallback font while its own font downloads, and swap when the download finishes. The change you see is that swap. Hosting the font on your site, preloading it and changing the font-display setting usually removes it.

Does the font flicker affect my Google ranking?

Indirectly. The swap can make the page jump, and Google measures that movement as Cumulative Layout Shift, one of its Core Web Vitals. It is one signal among many, but a steady page is also simply easier to use.

Is it bad to use Google Fonts?

No. The fonts themselves are fine, and many are excellent. The usual issue is the standard embed code, which loads them from Google’s servers with swap set. Downloading the font files and hosting them on your own site, then loading them as described above, gives you the same fonts without the flicker.

Will waiting for the font make my site slower?

Only if the fonts are large or discovered late. With the files preloaded and kept small, they normally arrive in a fraction of a second, well before the page would otherwise be ready. If a font is ever very slow, the browser falls back to a standard font after a short wait rather than leaving the text blank.