riloadr.js
// Handle when the DOM is ready
Handle when the DOM is ready
Handle when the DOM is ready
function ready( fn ) {
            if ( !isReady ) {
                if ( !doc[BODY] ) {
                    return defer( ready );
                }
                isReady = TRUE;
                while ( fn = callbacks.shift() ) {
                    defer( fn );
                }
            }
        }
function ready ( fn ) { if ( ! isReady ) { if ( ! doc [ BODY ] ) { return defer ( ready ) ; } isReady = TRUE ; while ( fn = callbacks . shift ( ) ) { defer ( fn ) ; } } }
Handle when the DOM is ready
Handle when the DOM is ready
// Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443). // Remember that the DOM is ready // Execute all callbacks