Woojin Kim <> changed:

           What    |Removed                     |Added
                 CC|                            |

--- Comment #4 from Woojin Kim <> 2011-02-17 14:55:22 UTC ---
(In reply to comment #0)
> According to
> 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:
------- You are receiving this mail because: -------
You are on the CC list for the bug.

Wikibugs-l mailing list

Reply via email to