dist/strawberry.v1.0.8.js
// does the heavy work of working through the browsers idiosyncracies (let's call them that) to hook onload.
does the heavy work of working through the browsers idiosyncracies (let's call them that) to hook onload.
does the heavy work of working through the browsers idiosyncracies ( let ' s call them that ) to hook onload .
function bindReady() {
        if (readyBound) {
            return;
        }
        readyBound = true;
        if (document.addEventListener && !browser.opera) {
            document.addEventListener("DOMContentLoaded", domReady, false);
        }
        if (browser.msie && window == top)(function() {
            if (isReady) return;
            try {
                document.documentElement.doScroll("left");
            } catch (error) {
                setTimeout(arguments.callee, 0);
                return;
            }
            domReady();
        })();
        if (browser.opera) {
            document.addEventListener("DOMContentLoaded", function() {
                if (isReady) return;
                for (var i = 0; i < document.styleSheets.length; i++)
                    if (document.styleSheets[i].disabled) {
                        setTimeout(arguments.callee, 0);
                        return;
                    }
                domReady();
            }, false);
        }
        if (browser.safari) {
            var numStyles;
            (function() {
                if (isReady) return;
                if (document.readyState != "loaded" && document.readyState != "complete") {
                    setTimeout(arguments.callee, 0);
                    return;
                }
                if (numStyles === undefined) {
                    var links = document.getElementsByTagName("link");
                    for (var i = 0; i < links.length; i++) {
                        if (links[i].getAttribute('rel') == 'stylesheet') {
                            numStyles++;
                        }
                    }
                    var styles = document.getElementsByTagName("style");
                    numStyles += styles.length;
                }
                if (document.styleSheets.length != numStyles) {
                    setTimeout(arguments.callee, 0);
                    return;
                }
                domReady();
            })();
        }
        addLoadEvent(domReady);
    }
function bindReady ( ) { if ( readyBound ) { return ; } readyBound = true ; if ( document . addEventListener && ! browser . opera ) { document . addEventListener ( "DOMContentLoaded" , domReady , false ) ; } if ( browser . msie && window == top ) ( function ( ) { if ( isReady ) return ; try { document . documentElement . doScroll ( "left" ) ; } catch ( error ) { setTimeout ( arguments . callee , 0 ) ; return ; } domReady ( ) ; } ) ( ) ; if ( browser . opera ) { document . addEventListener ( "DOMContentLoaded" , function ( ) { if ( isReady ) return ; for ( var i = 0 ; i < document . styleSheets . length ; i ++ ) if ( document . styleSheets [ i ] . disabled ) { setTimeout ( arguments . callee , 0 ) ; return ; } domReady ( ) ; } , false ) ; } if ( browser . safari ) { var numStyles ; ( function ( ) { if ( isReady ) return ; if ( document . readyState != "loaded" && document . readyState != "complete" ) { setTimeout ( arguments . callee , 0 ) ; return ; } if ( numStyles === undefined ) { var links = document . getElementsByTagName ( "link" ) ; for ( var i = 0 ; i < links . length ; i ++ ) { if ( links [ i ] . getAttribute ( 'rel' ) == 'stylesheet' ) { numStyles ++ ; } } var styles = document . getElementsByTagName ( "style" ) ; numStyles += styles . length ; } if ( document . styleSheets . length != numStyles ) { setTimeout ( arguments . callee , 0 ) ; return ; } domReady ( ) ; } ) ( ) ; } addLoadEvent ( domReady ) ; }
does the heavy work of working through the browsers idiosyncracies (let's call them that) to hook onload.
does the heavy work of working through the browsers idiosyncracies ( let ' s call them that ) to hook onload .
// Mozilla, Opera (see further below for it) and webkit nightlies currently support this event // Use the handy event callback // If IE is used and is not in a frame // Continually check to see if the document is ready // If IE is used, use the trick by Diego Perini // http://javascript.nwbox.com/IEContentLoaded/ // and execute any waiting functions // and execute any waiting functions // and execute any waiting functions // A fallback to window.onload, that will always work