Index: branches/MwEmbedStandAlone/remotes/mediaWiki.js |
— | — | @@ -81,9 +81,13 @@ |
82 | 82 | |
83 | 83 | |
84 | 84 | // Use wikibits onLoad hook: ( since we don't have js2 / mw object loaded ) |
85 | | -addOnloadHook( function() { |
86 | | - doPageSpecificRewrite(); |
87 | | -} ); |
| 85 | +if( window.jQuery ){ |
| 86 | + jQuery( document ).ready( doPageSpecificRewrite ); |
| 87 | +} else { |
| 88 | + addOnloadHook( function() { |
| 89 | + doPageSpecificRewrite(); |
| 90 | + } ); |
| 91 | +} |
88 | 92 | |
89 | 93 | |
90 | 94 | /** |