Skip to content

Instantly share code, notes, and snippets.

@rendrap
Forked from johnpolacek/gist:3827270
Created November 8, 2019 12:11
Show Gist options
  • Save rendrap/cc8d88e8be4ec99d29dc65b64f1e81de to your computer and use it in GitHub Desktop.
Save rendrap/cc8d88e8be4ec99d29dc65b64f1e81de to your computer and use it in GitHub Desktop.

Revisions

  1. @johnpolacek johnpolacek revised this gist Jul 15, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.html
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    <!-- Prevent FOUC - http://johnpolacek.com/2012/10/03/help-prevent-fouc/ -->
    <!-- Prevent FOUC (flash of unstyled content) - http://johnpolacek.com/2012/10/03/help-prevent-fouc/ -->
    <style type="text/css">
    .no-fouc {display: none;}
    </style>
  2. @johnpolacek johnpolacek revised this gist Jul 15, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.html
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    <!-- Prevent FOUC (flash of unstyled content) -->
    <!-- Prevent FOUC - http://johnpolacek.com/2012/10/03/help-prevent-fouc/ -->
    <style type="text/css">
    .no-fouc {display: none;}
    </style>
  3. @johnpolacek johnpolacek revised this gist Jan 9, 2013. 1 changed file with 5 additions and 7 deletions.
    12 changes: 5 additions & 7 deletions gistfile1.html
    Original file line number Diff line number Diff line change
    @@ -2,10 +2,8 @@
    <style type="text/css">
    .no-fouc {display: none;}
    </style>
    <!--[if !IE]> -->
    <script type="text/javascript">
    document.documentElement.className = 'no-fouc';
    // add to document ready: $('.no-fouc').removeClass('no-fouc');
    // this breaks in IE7, so IE users get the fouc.
    </script>
    <!-- <![endif]-->

    <script type="text/javascript">
    document.documentElement.className = 'no-fouc';
    // add to document ready: $('.no-fouc').removeClass('no-fouc');
    </script>
  4. @johnpolacek johnpolacek revised this gist Jan 8, 2013. 1 changed file with 7 additions and 4 deletions.
    11 changes: 7 additions & 4 deletions gistfile1.html
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,10 @@
    <style type="text/css">
    .no-fouc {display: none;}
    </style>
    <script type="text/javascript">
    document.documentElement.className = 'no-fouc';
    // add to document ready: $('.no-fouc').removeClass('no-fouc');
    </script>
    <!--[if !IE]> -->
    <script type="text/javascript">
    document.documentElement.className = 'no-fouc';
    // add to document ready: $('.no-fouc').removeClass('no-fouc');
    // this breaks in IE7, so IE users get the fouc.
    </script>
    <!-- <![endif]-->
  5. @johnpolacek johnpolacek created this gist Oct 3, 2012.
    8 changes: 8 additions & 0 deletions gistfile1.html
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    <!-- Prevent FOUC (flash of unstyled content) -->
    <style type="text/css">
    .no-fouc {display: none;}
    </style>
    <script type="text/javascript">
    document.documentElement.className = 'no-fouc';
    // add to document ready: $('.no-fouc').removeClass('no-fouc');
    </script>