Created
February 24, 2011 11:53
-
-
Save tobie/842085 to your computer and use it in GitHub Desktop.
Moar smallest DOMReady code, EVAR!
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 r(f){setTimeout(/in/(document.readyState)?r:f,9,f)} |
right, but why fix it at all if all you need to know is when the document content is loaded? after all, the polling is only a fallback for a real domContentLoaded, right?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
i use it to fix FF <=3.5, because they had no proper readyState.