44,445
edits
(Turns out mw.loader.load is asynchronous. That's probably why Pikan was failing to load half the time.) |
m (Oh, like this then?) |
||
Line 677: | Line 677: | ||
/* Pikan */ | /* Pikan */ | ||
mw.loader. | mw.loader.load('//www.pikminwiki.com/index.php?title=User:Espyo/pikan-core.js' | ||
+ '&action=raw&ctype=text/javascript') | + '&action=raw&ctype=text/javascript'); | ||
mw.loader.load('//www.pikminwiki.com/index.php?title=User:Espyo/pikan- | mw.loader.using(['pikan']).done(function () { | ||
mw.loader.load('//www.pikminwiki.com/index.php?title=User:Espyo/pikan-pikipedia.js' | |||
+ '&action=raw&ctype=text/javascript'); | + '&action=raw&ctype=text/javascript'); | ||