Difference between revisions of "MediaWiki:Common.js"

From Multi Theft Auto: Wiki
(Created page with "mw.loader.load("https://forum.mtasa.com/uploads/javascript_syntax/luafuncs.js"); mw.loader.load("https://forum.mtasa.com/uploads/javascript_syntax/mtafuncs.js"); mw.loader.loa...")
 
Line 1: Line 1:
 
mw.loader.load("https://forum.mtasa.com/uploads/javascript_syntax/luafuncs.js");
 
mw.loader.load("https://forum.mtasa.com/uploads/javascript_syntax/luafuncs.js");
 
mw.loader.load("https://forum.mtasa.com/uploads/javascript_syntax/mtafuncs.js");
 
mw.loader.load("https://forum.mtasa.com/uploads/javascript_syntax/mtafuncs.js");
mw.loader.load("/extensions/_MTAThemeExtensions/mtahighlight.js");
+
mw.hook( 'resourceloader.loadEnd' ).add( function(){
 +
    mw.loader.load("/extensions/_MTAThemeExtensions/mtahighlight.js");
 +
});

Revision as of 01:10, 26 September 2016

mw.loader.load("https://forum.mtasa.com/uploads/javascript_syntax/luafuncs.js");
mw.loader.load("https://forum.mtasa.com/uploads/javascript_syntax/mtafuncs.js");
mw.hook( 'resourceloader.loadEnd' ).add( function(){
    mw.loader.load("/extensions/_MTAThemeExtensions/mtahighlight.js");
});