Created
August 6, 2012 07:17
-
-
Save venj/3271869 to your computer and use it in GitHub Desktop.
DOM ready, the easiest way. For modern browsers.
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('DOMContentReady', function(){ | |
// DOM ready. | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
DOMContentReady event does not exist. You probably meant DOMContentLoaded