Skip to content

Instantly share code, notes, and snippets.

@Convincible
Last active October 17, 2017 22:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Convincible/95b6265ad188c8670e9c4bb8221a3f6d to your computer and use it in GitHub Desktop.
Save Convincible/95b6265ad188c8670e9c4bb8221a3f6d to your computer and use it in GitHub Desktop.
Add 'js' class to <html> element
(function(d){d.className=d.className.replace(/(^|\s)no-js(\s|$)/, ' ') + ' js'}(document.documentElement));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment