https://bugzilla.wikimedia.org/show_bug.cgi?id=41331
--- Comment #3 from Erwin Dokter <[email protected]> 2012-10-24 18:23:53 UTC --- importScriptURI and importStylesheetURI are officially deprecated since 1.17 according to http://www.mediawiki.org/wiki/ResourceLoader/JavaScript_Deprecations#wikibits.js. Until ResourceLoader can load inter-wiki (user)scripts/sheets, I don't consider mw.loader.load loading external scripts a 'convenience'. The difference I notice between mw.loader.load and importStylesheetURI is the method used to add the script; mw.loader.load uses jQuery to select the head and create the link, and only does so when loading an external stylesheet. May I suggest trying: if ( type === 'text/css' ) { var link = document.createElement( 'link' ); link.type = 'text/css'; link.rel = 'stylesheet'; link.href = modules; document.getElementsByTagName( 'head' )[0].appendChild( link ); return; } ...instead to see if that eliviates the problem? -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
