Skip to content

Instantly share code, notes, and snippets.

@badsyntax
Created November 19, 2010 14:10
Show Gist options
  • Select an option

  • Save badsyntax/706554 to your computer and use it in GitHub Desktop.

Select an option

Save badsyntax/706554 to your computer and use it in GitHub Desktop.
Adding 'js' classname to HTML tag to prevent FOUC of Javascript components
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<title></title>
<script type="text/javascript">document.documentElement.className += " js";</script>
<link rel="stylesheet" href="css/style.css?v=2">
</head>
<body>
</body>
</html>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment