Skip to content

Instantly share code, notes, and snippets.

@yitsushi
Created June 26, 2013 19:44
Show Gist options
  • Save yitsushi/5870938 to your computer and use it in GitHub Desktop.
Save yitsushi/5870938 to your computer and use it in GitHub Desktop.
JavaScript: Run code when the document has loaded #snippet
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