| | 513 | if ( jQuery.browser.opera ) |
| | 514 | document.addEventListener( "DOMContentLoaded", function () { |
| | 515 | if (jQuery.isReady) return; |
| | 516 | for (var i = 0; i < document.styleSheets.length; i++) |
| | 517 | if (document.styleSheets[i].disabled) { |
| | 518 | setTimeout( arguments.callee, 0 ); |
| | 519 | return; |
| | 520 | } |
| | 521 | // and execute any waiting functions |
| | 522 | jQuery.ready(); |
| | 523 | }, false); |
| | 524 | |
| | 525 | if ( jQuery.browser.safari ) { |
| | 526 | var numStyles; |
| | 527 | (function(){ |
| | 528 | if (jQuery.isReady) return; |
| | 529 | if ( document.readyState != "loaded" && document.readyState != "complete" ) { |
| | 530 | setTimeout( arguments.callee, 0 ); |
| | 531 | return; |
| | 532 | } |
| | 533 | if ( numStyles === undefined ) |
| | 534 | numStyles = jQuery("style, link[rel=stylesheet]").length; |
| | 535 | if ( document.styleSheets.length != numStyles ) { |
| | 536 | setTimeout( arguments.callee, 0 ); |
| | 537 | return; |
| | 538 | } |
| | 539 | // and execute any waiting functions |
| | 540 | jQuery.ready(); |
| | 541 | })(); |
| | 542 | } |
| | 543 | |