Created
February 21, 2012 23:57
-
-
Save adrianpike/1879964 to your computer and use it in GitHub Desktop.
safari DOM ready
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(/Safari/i.test(navigator.userAgent)){ //Test for Safari | |
| var _timer=setInterval(function(){ | |
| if(/loaded|complete/.test(document.readyState)){ | |
| clearInterval(_timer) | |
| walkmydog() // call target function | |
| }}, 10) | |
| } | |
| // h/t @jresig |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment