https://bugzilla.wikimedia.org/show_bug.cgi?id=25845
Woojin Kim <kwj2...@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kwj2...@gmail.com --- Comment #4 from Woojin Kim <kwj2...@gmail.com> 2011-02-17 14:55:22 UTC --- (In reply to comment #0) > According to > http://www.mediawiki.org/wiki/ResourceLoader/JavaScript_Deprecations#wikibits.js > importScript should be replaced by mediaWiki.loader.load in the future, but at > the moment it's not a good substitute. If you want a script to be loaded both > via http or https depending you have to replace > importScript('User:Foo/bar.js'); > by > mediaWiki.loader.load(mediaWiki.config.get('wgServer') + > mediaWiki.config.get('wgScript') + > '?title=User:Foo/bar.js&action=raw&ctype=text/javascript'); > > Another user suggested the syntax > mediaWiki.loader.load('[[User:Foo/bar.js]]'); > > This has two advantages: It doesn't conflict with names of modules and it > generates an entry in "What links here". No brackets please. If there is any bracket, we may be in need of lines of script for eliminating brackets. I think distinguishment with former importScriptURI can be done by protocol. Best regards. -- 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 Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l