https://bugzilla.wikimedia.org/show_bug.cgi?id=25845
--- Comment #14 from Krinkle <[email protected]> 2011-04-13 15:09:24 UTC --- (In reply to comment #13) > Reply to Comment #12: > Requiring the user to register user scripts as modules seems a bit onerous to > me. I think we should keep this simple for end users. Otherwise, they are > going > to keep using importScript for the rest of time. > > Couldn't we just detect for a parameter of type /(.*)\:(.*)\.(js|css)/i > and either convert it into an external link or construct a module on behalf of > the user? > > Then people could easily migrate... > importScript('User:Foo/bar.js'); > ...to... > mediaWiki.loader.load('User:Foo/bar.js'); I couldn't agree more that such a short cut would be ideal, and in fact I believe it should be implemented. However in should not do what mw.legacy.importScript did (loading index.php&title=..&action=raw). Instead it would register/load the module on-demand. ie. load.php?wikiscripts=User:Foo/bar.js&wikistyles=User:Foo/bar.css|MediaWiki:VectorAltenative.css (or just &wikipages=). It doesn't even depend on bug bug 27561 being fixed. See also comments on bug 27535. -- 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
