})(window.$mw);
+//load in js2 stopgap into proper location:
+if(gMsg){
+ $mw.lang.loadGM( gMsg )
+}
+
//setup legacy global shortcuts:
var loadGM = $mw.lang.loadGM;
var loadRS = $mw.lang.loadRS;
//js2AddOnloadHook: ensure jQuery and the DOM are ready
function js2AddOnloadHook( func ) {
- js_log('js2AddOnloadHook:: jquery:' +func);
+ //js_log('js2AddOnloadHook:: jquery:' +func);
//check for jQuery then add the load event (to run after video tag rewrites (if present)
mvJsLoader.jQueryCheck( function() {
if( mvJsLoader.doneReadyEvents ) {
var urlparts = getRemoteEmbedPath();
var mwEmbedHostPath = urlparts[0];
-var mwRemoteVersion = '1.02';
+var mwRemoteVersion = '1.03';
reqArguments = urlparts[1];
if( typeof $mw == 'undefined' ) {
if( reqParam['uselang'] || reqParam['useloader'] ){
var rurl = mwEmbedHostPath + '/mwEmbed/jsScriptLoader.php?class=mv_embed';
+ //add jQuery too if we need it:
if(typeof window.jQuery == 'undefined'){
rurl+= ',window.jQuery';
}