Skip to content

Instantly share code, notes, and snippets.

@adrianpike
Created February 21, 2012 23:57
Show Gist options
  • Save adrianpike/1879964 to your computer and use it in GitHub Desktop.
Save adrianpike/1879964 to your computer and use it in GitHub Desktop.
safari DOM ready
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