Fix for FOUC :
At the top of your HTML:
<!doctype html>
<html>
<head>
<style>html{visibility: hidden;opacity:0;}</style>
At the end of your last .css file:
html {
visibility: visible;
opacity: 1;
}
Fix for FOUC :
At the top of your HTML:
<!doctype html>
<html>
<head>
<style>html{visibility: hidden;opacity:0;}</style>
At the end of your last .css file:
html {
visibility: visible;
opacity: 1;
}
This seems to work for me and is the most convenient. I'm using a a framework for my project and so, while I can add the
<style>
group in my<head>
, I have little control over where thehtml
style appears in my css file. This is what I end up with and it works.