Skip to content

Instantly share code, notes, and snippets.

@yckart
Created August 26, 2013 12:18
Show Gist options
  • Save yckart/6340854 to your computer and use it in GitHub Desktop.
Save yckart/6340854 to your computer and use it in GitHub Desktop.
var DOMReady = function r(fn) {
if (document.readyState === 'complete') return fn();
setTimeout(function () {
r(fn);
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment