Skip to content

Instantly share code, notes, and snippets.

@andreipopovici
Forked from johnpolacek/gist:3827270
Created September 6, 2013 13:40
Show Gist options
  • Save andreipopovici/6463943 to your computer and use it in GitHub Desktop.
Save andreipopovici/6463943 to your computer and use it in GitHub Desktop.
<!-- Prevent FOUC (flash of unstyled content) - http://johnpolacek.com/2012/10/03/help-prevent-fouc/ -->
<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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment