The function utilizes several different platform-specific methods for detecting the readiness of the DOM all at once including; the DOMContentLoaded event, the document ready state, and Diego Perini's doScroll hack. Best of all, it does this without resorting to browser sniffing.
For more information regarding onDOMReady, please visit the blog post located here: http://ryanmorr.com/archives/ondomready-no-browser-sniffing
onDOMReady is licensed under the terms of the MIT License, see the included license.txt file.