Skip to content

Instantly share code, notes, and snippets.

@craigmdennis
Last active February 1, 2022 03:08
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save craigmdennis/6411466 to your computer and use it in GitHub Desktop.
Save craigmdennis/6411466 to your computer and use it in GitHub Desktop.
When not including Modernizr, use this to remove the no-js class from the html.From: http://www.paulirish.com/2009/avoiding-the-fouc-v3/
<html class="no-js">
<head>
<script>(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement)</script>
</head>
<body>
</body>
</html>
@nguyenbathanh
Copy link

Very useful!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment