Created
April 3, 2020 17:05
-
-
Save Artisan-Asad/586b27995ae89a5c09c1ad8fb2b7bfcd to your computer and use it in GitHub Desktop.
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
const DocumentReady = (e) => { | |
if (document.readyState === "complete" || document.readyState === "interactive") { | |
setTimeout(e, 1); | |
} else { | |
document.addEventListener("DOMContentLoaded", e); | |
} | |
} | |
DocumentReady( () => { | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment