Page MenuHomePhabricator

Add support for simple syntax in mediaWiki.loader (similar to legacy importScript)
Closed, DuplicatePublic


The list of JavaScript deprecations suggests that importScript is/will be deprecated in favor of mediaWiki.loader functionality. Nonetheless, it doesn't seems to support a nice syntax like importScript( 'Page.js' );

So, it would be interesting to provide support to such a syntax before deprecating the legacy importScript function.

Version: unspecified
Severity: enhancement



Event Timeline

bzimport raised the priority of this task from to Normal.Nov 21 2014, 11:21 PM
bzimport added a project: MediaWiki-JavaScript.
bzimport set Reference to bz27475.
He7d3r created this task.Feb 16 2011, 9:05 PM
He7d3r added a comment.EditedFeb 17 2011, 9:39 AM

There is a patch for this in T27845: Support loading wiki pages through mediaWiki.loader.load()

  • This bug has been marked as a duplicate of T27845 ***

For the record: both functions are now deprecated:

He7d3r updated the task description. (Show Details)Apr 13 2015, 10:03 PM
He7d3r added a project: JavaScript.
He7d3r set Security to None.