Created
April 15, 2014 00:40
-
-
Save RyoSugimoto/10692811 to your computer and use it in GitHub Desktop.
「no-js」クラスを<html>要素から取り除く。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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