MediaWiki:Vector.js: Difference between revisions
no edit summary
imported>Smallketchup82 (instead of using settimeout for 100 miliseconds to enable darkreader and setinterval to wait until the DarkReader variable exists, use jquery promises to wait for each script to load and do things based off of that asynchronously) |
imported>Smallketchup82 No edit summary |
||
Line 2: | Line 2: | ||
// Load Scripts | // Load Scripts | ||
return | |||
mw.loader.getScript( '/index.php?title=MediaWiki:Dark.css&action=raw&ctype=text/css', 'text/css' ).then( // -> Load custom dark css styling first | mw.loader.getScript( '/index.php?title=MediaWiki:Dark.css&action=raw&ctype=text/css', 'text/css' ).then( // -> Load custom dark css styling first | ||
function () { | function () { |