MediaWiki:Common.js: Difference between revisions

Content deleted Content added
add code to load custom css/js in MediaWiki namespace for testing
move monthlyconvert js loading here, to reduce blocking
Line 14:
} else {
mw.loader.load( '/w/index.php?title=MediaWiki:DonationForm.js&action=raw&ctype=text/javascript' );
}
// Load monthly convert JS if needed
// TODO: allow loading different JS variants, either here or defined in the Template
if ( mw.util.getParamValue('monthlyconvert') ) {
mw.loader.load( '/w/index.php?title=MediaWiki:MonthlyConvert.js&action=raw&ctype=text/javascript' );
}
}