How to fix console warning: "Layout was forced..."

I have conditional logic to block data from the front end in certain situations. I noticed that sometimes that information flashes on the screen before being hidden by the conditional statements. I looked at the console and saw the following warning…

“Layout was forced before the page was fully loaded. If stylesheets are not yet loaded this may cause a flash of unstyled content.”

Any ideas on how I can fix this?

Can anyone provide some help on this?

This topic was automatically closed after 70 days. New replies are no longer allowed.