Loading problems are able to lead to a FOUC. There are some reasons to explain this problem.
The first reason is the way which Elementor Page Builder embeds its templates.
What is the reason for embedding template stylesheet in the footer, but not on the header?
While loading the page, it is impossible to identify which templates are embedded in the page; therefore, we load them in the footer.
If it leads to a small flash while loading the page, you can follow one of these solutions to solve this problem:
- Determine the CSS Print Method to be inline in place of using external files. First of all, you need to switch on the Elementor dashboard, then click on Settings -> Advanced -> CSS Print Method -> Internal Embedding.
- Load the CSS files with a measure in the
functions.php
file of your child theme. For instance:
Let type your ID of the template to replace $template_id = 123456
and it will load in the header of your site. This method just can be used in some particular page.
- There are also several optimization plugins that can deal with this problem.
These solutions are pertinent in case a template was embedded or a global widget of Elementor Page Builder in your footer or header.
You should also notice that in case you use the “stretch section” feature, a flash of unstyled content is able to be experienced since this option is compatible with a JS code and while loading scripts, flickers are able to occur. Moreover, the FOUC also happens when you use a large or heavy photo.
In conclusion.
If you have any questions about this, don’t hesitate to leave a comment below. we will reply as soon as possible. Besides, you can also take a look at our Free Elementor Templates here to get a wonderful theme for yourself.
Image credit: docs.elemntor
- How to place menu items in helix joomla 5 ? - December 14, 2024
- How to reduce the size of helix 2 layout ? - December 14, 2024
- What’s J4 starter template and how to use it - December 3, 2024
Recent Comments