Skip to content

Instantly share code, notes, and snippets.

@awayken
Forked from ded/domready.js
Created August 12, 2011 03:54
Show Gist options
  • Save awayken/1141409 to your computer and use it in GitHub Desktop.
Save awayken/1141409 to your computer and use it in GitHub Desktop.
Smallest x-browser DOM Ready, ever
function r(f){/in/(document.readyState)?setTimeout(r,9,f):f()}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment