Created
January 16, 2018 12:47
-
-
Save mshustov/35651a2f3db81352cdd965be19e6e50b to your computer and use it in GitHub Desktop.
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
if (document.body && ['complete', 'loaded', 'interactive'].indexOf(document.readyState) > -1) { | |
run(); | |
} else { | |
document.addEventListener('DOMContentLoaded', run, false); | |
} | |
function run(){ | |
console.log('I ran'); | |
window.get()(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment