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.
- HTML arrivesBrowser starts reading the page
- CSS delayedStylesheet is deferred or slow
- Unstyled paintVisitor sees raw HTML
- Layout jumpsDesign snaps in, content shifts
The browser paints before the stylesheet is ready, so the first impression is a broken-looking page.
The visitor sees a broken-looking page first, then the design appears.
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 the page with the cache disabled.
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.
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.
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.
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.
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.
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.
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.
Load the theme stylesheet in the head
In Online Store > Themes > Edit code, open layout/theme.liquid and check that your main stylesheet is linked inside <head> with stylesheet_tag, not injected later.
Audit installed apps
Apps can add late-loading CSS or scripts. Disable them one by one in a duplicate theme to find the culprit.
Check custom code
In Site settings > Custom code and in page settings, look for scripts that hide or restyle the page, or that load CSS from another host.
Fix font loading
In Site settings > Fonts, avoid loading too many font families and weights, which delays text rendering.
Remove CSS injected by tags
In GTM, review Custom HTML tags (including A/B testing snippets) that add style tags or hide the page. Move that CSS into your site's own stylesheet.
Avoid late page-hiding snippets
If a test tool hides the page until it loads, make sure it fires early and has a short timeout so the page is never left half-styled.
Use a normal blocking stylesheet
Put a plain <link rel="stylesheet"> in the <head>, before any scripts that need styled content.
Inline critical CSS if needed
Inline the small amount of CSS for the above-the-fold area in a <style> tag and load the rest normally.
Preload key fonts
Preload your main font and set font-display so text stays readable while the font loads.
<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>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
- 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
- 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.
Related issues
- PRF-382Form elements unstyled (browser defaults) after CSS failureFix guide
- PRF-372Page looks broken after theme/plugin update (visual regression)Fix guide
- PRF-373Overlapping elements or textFix guide
- PRF-379Blank page with only header and footerFix guide
- PRF-380Empty white screen (JS crash)Fix guide
- PRF-385Screenshot of the funnel step looks different from expectedFix guide