Skip to content

Instantly share code, notes, and snippets.

@venj
Created August 6, 2012 07:17
Show Gist options
  • Save venj/3271869 to your computer and use it in GitHub Desktop.
Save venj/3271869 to your computer and use it in GitHub Desktop.
DOM ready, the easiest way. For modern browsers.
document.addEventListener('DOMContentReady', function(){
// DOM ready.
});
@Lovor01
Copy link

Lovor01 commented Nov 11, 2020

DOMContentReady event does not exist. You probably meant DOMContentLoaded

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment