Created
March 30, 2017 22:23
-
-
Save juliozuppa/21b0d88693c44d012b87d34a6ba33bfc 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
function docReady(fn) { | |
if (window.addEventListener) { | |
window.addEventListener('load', fn, false); | |
} else if (window.attachEvent) { | |
window.attachEvent('onload', fn); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment