Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Unstyled flash on load (FOUC): how to find and fix it

PRF-376Low impactCould addBy FunnelGuardPublished Updated
On this page

What this issue is

A flash of unstyled content (FOUC) is a short moment when your page shows as plain text, default fonts and stacked images before your stylesheet arrives and the design snaps into place. It usually lasts a fraction of a second, but it is visible.

Common causes: stylesheets loaded late or with media="print" tricks that are never switched on, CSS injected by JavaScript, a slow or failing CSS file on a CDN, a caching or minification plugin that defers all CSS, and web fonts that swap in after the first paint (a related flash called FOUT).

Why it costs you leads or sales

Visitors judge a page in seconds. A page that jumps from raw HTML to a designed layout looks unreliable, and on a checkout or lead form that doubt matters. The layout shift can also move a button or field just as someone tries to tap it. The impact is usually small, which is why it is rated low, but it hits your first impression on every paid click.

How a FOUC reaches your form
  1. HTML arrivesBrowser starts reading the page
  2. CSS delayedStylesheet is deferred or slow
  3. Unstyled paintVisitor sees raw HTML
  4. Layout jumpsDesign snaps in, content shifts

The browser paints before the stylesheet is ready, so the first impression is a broken-looking page.

A page that paints before its styles

The visitor sees a broken-looking page first, then the design appears.

How to check if your site has it

Spot a FOUC in your browser
  1. Throttle the network

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

  2. Record the load

    Open the Performance tab, click the reload-and-record button and look at the filmstrip in the screenshots section. Early frames with no styling confirm a FOUC.

  3. Find the late stylesheet

    In the Network tab, filter by CSS. Look for stylesheets that start late, load after the first paint, or are marked as not render-blocking when they should be.

  4. Test on a real phone

    Load the page on mobile data with a cleared cache. FOUC often shows on first visits only, because repeat visits use cached CSS.

  5. Try with scripts off

    If styles only appear after a script runs, the CSS is injected by JavaScript. Check that script in the Sources tab.

How to fix it

The principle is the same everywhere: the CSS needed for the visible top of the page must load before the first paint, in the <head>, without waiting on JavaScript. Platform-specific steps are below.

Fix FOUC by platform
  1. Check your optimisation plugin

    In your caching or performance plugin (for example WP Rocket, LiteSpeed Cache, Autoptimize), look for options named like 'Load CSS asynchronously', 'Remove unused CSS' or 'Delay CSS'. Turn them off and test.

  2. Re-enable them one at a time

    If you want async CSS, make sure critical CSS generation is on and has finished. Clear all caches afterwards.

  3. Check theme and builder updates

    Make sure your theme and page builder are up to date and that no plugin is dequeuing the theme stylesheet.

Safe stylesheet and font loading in the headhtml
<head>
  <link rel="preload" href="/fonts/brand.woff2" as="font" type="font/woff2" crossorigin>
  <link rel="stylesheet" href="/css/main.css">
  <style>
    @font-face {
      font-family: 'Brand';
      src: url('/fonts/brand.woff2') format('woff2');
      font-display: swap;
    }
  </style>
</head>
First paint before and after

With FOUC

  • CSS is deferred or injected by script
  • Visitor sees raw HTML first
  • Layout jumps when styles arrive

Fixed

  • Critical CSS loads in the head
  • First paint already looks designed
  • No visible layout jump

How to confirm it's fixed

Confirmation checks
  • Reload with cache disabled and Slow 4G throttling: the first filmstrip frames already look styled
  • No major layout shift when the page finishes loading
  • Test on a real phone with a cleared cache
  • Test on the key funnel pages: landing page, form and checkout
  • Check in at least two browsers, for example Chrome and Safari

How to prevent it happening again

Prevention habits
  • After any plugin, theme or app change, reload key pages as a first-time visitor
  • Keep CSS in the head and avoid loading styles from scripts
  • Regenerate critical CSS after design changes if you use an optimisation plugin
  • Limit the number of font families and weights
  • Host stylesheets on a reliable CDN and watch for failed requests

How FunnelGuard handles this

FunnelGuard does not check for an unstyled flash on load today. It is a possible future check. A brief flash that corrects itself is hard to judge from a single run, and it is rated low impact.

What FunnelGuard does do is run your real customer journeys on a schedule, check each step, and capture a screenshot when something fails. That helps with nearby problems, such as a form that no longer works after a theme or plugin update. To watch for FOUC itself, use the DevTools filmstrip check above, or a lab tool such as Lighthouse, which reports layout shift.

Frequently asked questions

Questions people ask

What is a flash of unstyled content (FOUC)?

FOUC is a short moment when a page displays as plain, unstyled HTML before its CSS loads and applies. Visitors see default fonts and a broken layout, then the design snaps into place.

Why does my page load without CSS first?

The browser painted the page before the stylesheet was ready. Typical causes are CSS loaded late or deferred by an optimisation plugin, styles injected by JavaScript, or a slow stylesheet request.

How do I fix FOUC on WordPress?

Check your caching or performance plugin for options like 'Load CSS asynchronously', 'Delay CSS' or 'Remove unused CSS' and turn them off, or make sure critical CSS is generated. Then clear all caches and test as a first-time visitor.

Is FOUC bad for SEO or conversions?

It is usually a minor issue, but the layout shift can hurt Core Web Vitals scores and make a page look untrustworthy. On a form or checkout, that can reduce confidence at the moment it matters.

What is the difference between FOUC and FOUT?

FOUC means the whole page appears without styles. FOUT, flash of unstyled text, means only the text shows in a fallback font before your web font loads. Preloading the font and setting font-display help with FOUT.

Why do I only see the flash on the first visit?

After the first visit, your browser caches the CSS, so it is ready immediately. Test in an incognito window or with the cache disabled to see what new visitors see.

Does FunnelGuard detect FOUC?

No. FunnelGuard does not check for unstyled flashes yet. It does run your real journeys on a schedule and checks each step, so it helps with nearby breakages such as forms failing after a theme update.

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.