Skip to content

Instantly share code, notes, and snippets.

@RyoSugimoto
Created April 15, 2014 00:40
Show Gist options
  • Save RyoSugimoto/10692811 to your computer and use it in GitHub Desktop.
Save RyoSugimoto/10692811 to your computer and use it in GitHub Desktop.
「no-js」クラスを<html>要素から取り除く。
// remove "no-js" class from <html>
;(function () {
setTimeout(function () {
var html = document.getElementsByTagName('html')[0],
htmlClass = html.className,
newClass = htmlClass.replace(/(^| )no-js( |$)/, ' ');
html.className = newClass;
}, 0);
}());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment