Created
June 26, 2013 19:44
-
-
Save yitsushi/5870938 to your computer and use it in GitHub Desktop.
JavaScript: Run code when the document has loaded #snippet
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
document.addEventListener("DOMContentLoaded", DOMContentLoadedHandler, false); | |
function DOMContentLoadedHandler() { | |
// code here | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment