Created
November 14, 2016 16:37
-
-
Save diego-betto/5b754c3071620cce8a7c0c129c625324 to your computer and use it in GitHub Desktop.
DOM ready vanilla
This file contains 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
<script>var domReady = function(callback) {document.readyState === "interactive" || document.readyState === "complete" ? callback() : document.addEventListener("DOMContentLoaded", callback);};</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment