Last active
August 30, 2019 00:55
-
-
Save wadadanet/df6ceef79c7b77fa74242617398310e7 to your computer and use it in GitHub Desktop.
HTMLが読み込まれてからJSを実行したい場合
This file contains 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
if (document.readyState === "loading"){ | |
document.addEventListener("DOMContentLoaded", init); | |
} else { | |
init(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment