Last modified: 2012-04-16 09:15:57 UTC
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.
There is a patch for this in bug 25845 *** This bug has been marked as a duplicate of bug 25845 ***