# Sage 10 FOUC

**URL:** https://discourse.roots.io/t/sage-10-fouc/26489
**Category:** sage
**Tags:** bedrock, sage10, bud
**Created:** 2024-01-02T11:17:20Z
**Posts:** 3

## Post 1 by @Harry_Gardiner — 2024-01-02T11:17:20Z

I’m developing a site for a friends charity(Pro bobo). I am using bedrock with sage 10.

Not sure why but I am getting a flash of unstyled content(FOUC) on every page.

Not sure what code I need to provide or where to begin dubgging. Any ideas would be appreciated.

---

## Post 2 by @thunderdw — 2024-01-02T15:24:14Z

Are you building assets with dev or production mode? The dev mode (`yarn dev` with default Sage theme) inserts styles via JavaScript to enable hot reloading so you’ll often get FOUC. If you build in production mode (if you aren’t already) (`yarn build` with the default Sage theme) does that fix the issue?

---

## Post 3 by @Harry_Gardiner — 2024-01-03T09:14:28Z

Thanks @thunderdw. That does indeed seem to be the cause.

I notice it when using dev(localhost). Just checked the build and no FOUC it seems. I thought I had already checked this previously, but must have overlooked it.

Much appreciated.
