Skip to content

Instantly share code, notes, and snippets.

@wellington1993
Forked from electrotype/FOUC-fix.md
Created November 22, 2018 13:38
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save wellington1993/1402e7d0e8d6c09726471da4a81dcfc9 to your computer and use it in GitHub Desktop.

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;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment