Skip to main content
Elementor

Deal With Blinks / FOUC




Loading issues can cause a FOUC (Unstyled Content Flash). Several specific reasons can explain this.

First of all, This may be due to the way Elementor embeds its templates.

Why is the template stylesheet embedded in the footer and not in the ?

When a page loads, we cannot recognize which templates have been embedded on the page. That is why we load them in the footer.

In some cases, this can cause a small flash (flicker or FOUC) when the page loads.

How to solve FOUC?

You can resolve this problem by using one of the following methods:

1. Set the CSS printing method to be inline instead of using external files. This can be done by going to the Elementor> Settings> Advanced> CSS printing method> Internal embedding

2. The second option is load the CSS files with an action in the functions.php your child theme file. For example:

add_action ('wp_enqueue_scripts', function () {if (! class_exists ('ElementorCoreFilesCSSPost')) {return;} $template_id = 123456; $css_file = new ElementorCoreFilesCSSPost ($template2-cf ($template2-cf); $template2-cfue ($template2-cf); $template2-id); $template2-cfue;

Instead of $template_id = 123456, enter your template ID, and it will always load in the site header. You can use this method to only specific pages.

3. Some optimization plugins can solve this too.

The above solutions are relevant if you embedded an Elementor global widget or template in your header or footer via your theme options.

Note: Be aware that you may experience a FOUC (unstyled content flash) when using the "stretch section" function because this option works with JS code and flickering can occur when loading scripts.

Note: Unstyled content flare can also occur if you use large / heavy images.

Tip: In some cases, such as when a large image section is causing the FOUC, a quick fix can be used. Just add an entrance animation, like Fade In, to the specific SECTION that is having the problem. In many cases, this will easily solve the problem.

R Marketing Digital