Created
November 23, 2017 21:07
-
-
Save jfranciscos4/737a0602a21e9d027b7b87f5faa21425 to your computer and use it in GitHub Desktop.
Load page es5
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
var init = function() { | |
// Handler when the DOM is fully loaded | |
}; | |
if ( | |
document.readyState === "complete" || | |
(document.readyState !== "loading" && !document.documentElement.doScroll) | |
) { | |
init(); | |
} else { | |
document.addEventListener("DOMContentLoaded", init); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment