Google Optimize Troubleshooting: Flash of White or Gray Screen for Several Seconds Before Page Load

Are you seeing a flash of a white or gray screen for several seconds before each page load? This guide will show you how to fix this misconfiguration of your settings with some Google Optimize troubleshooting.

We’ve seen this for customers who have turned on Google Optimize but have not completed their setup at

The Problem

Every time any public page loads it presents with a full grey screen for a few seconds before allowing the page to load.

Why This Issue is Occurring

First, go to Insights » Settings » Conversions while logged into your WordPress admin.

You’ll see a section for Google Optimize settings:

  • Google Optimize Container ID
  • Google Optimize Async Page Hide
  • Conditionally Load Google Optimize Container Id

The Google Optimize Async Page Hide settings are there to avoid a flash of content changing if your site visitor’s connection is slow.

However, if you haven’t yet published your Google Optimize Container (and it’s still in draft mode), then this is most likely the reason why you’re seeing a flash of white or gray on your website.

What happens is:

  1. MonsterInsights waits for Google Optimize container to load.
  2. But since the container is not published at, it never loads.
  3. Since it never loads it causes a blank screen for the full 4 seconds.

To fix this problem, you’ll want to ensure you publish your Google Optimize container at To avoid this issue, and finish setting up Google Optimize, please see our guide on this matter: How to Set Up Google Optimize in WordPress (the Easy Way).

Next Steps

That’s it! Now you know how to fix the flash of a white or gray screen for several seconds before your site loads. We have more docs on setting up Google Optimize for WordPress.