If you use the Divi Theme, you will know what we’re talking about here.

So, you just got done creating this beautiful site using the Divi Theme. But there’s one problem. Every time you load the page, there’s about 15 milliseconds of unstyled website that flashes before the design loads. Most people won’t notice or care about this, but as the developer, it is probably driving you crazy. I know it drives me crazy.

Below is the fix.

<script type="text/javascript">
var elm=document.getElementsByTagName("html")[0];
elm.style.display="none";
document.addEventListener("DOMContentLoaded",function(event) {elm.style.display="block"; });
</script>

Go to Divi >> Theme Options >> Integrations and paste the code above into the <head> section. Click save, and you’re done. The problem is fixed.

You don’t have to thank me, just share this fix with everyone who runs into this issue.