Skip to content

Instantly share code, notes, and snippets.

@acimnotes
Created January 13, 2016 08:56
my javascript learning.
document.onreadystatechange = function () {
if (document.readyState === "complete") {
// executes after DOM is ready
}
}
window.onload = function() {
// executes when everything is loaded
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment