We found a conflict when using the jQuery.min.js package and other tools.

We found a conflict when using the jQuery.min.js package and other tools.

When those other tools do a page reload during the page load they conflict with jquery.min.js.
The exact place is line 943
        // Figure out if the W3C box model works as expected
        // document.body must exist before we can do this
        jQuery(function() {
                var div = document.createElement("div");
                div.style.width = div.style.paddingLeft = "1px";
                document.body.appendChild( div );
                jQuery.boxModel = jQuery.support.boxModel = div.offsetWidth === 2;
                document.body.removeChild( div ).style.display = 'none';
                div = null;
        });

Per the notes, the document.body must exist, but it does not during the page reload. I propose the following change to the code:

        jQuery(function() {
                if (document.body !== null) {
                         var div = document.createElement("div");
                         div.style.width = div.style.paddingLeft = "1px";
                         document.body.appendChild( div );
                         jQuery.boxModel = jQuery.support.boxModel = div.offsetWidth === 2;
                         document.body.removeChild( div ).style.display = 'none';
                         div = null;
                }
        });

Our temporary work around is to invoke our code before jquery.min.js, but this fix would be very helpful to customers using your library.

Thanks,

Jason