Thread:Talk:ResourceLoader/JavaScript Deprecations/importScript(), importStylesheet()/reply (3)

See also ResourceLoader/Migration_guide_(users).

If you are looking to update your scripts to not use deprecated functions, and come across calls to " " and " ", you are free to just keep using those the way they are. You don't have to fear them being removed, that will not happen until after a better replacement exists.

does not and will not support loading of wiki-pages directly. The whole concept of ResourceLoader is modularity. Right now that is only available to core/extensions and on wikis via Gadgets. User scripts cannot create modules directly, therefor it's currently not possible to migrate a non-Gadget user script to fully use.

Advise:
 * Either make your script into a Gadget (in which case you shouldn't ever need to use importScript, since you either list other files in the Gadgets-definition or you use "dependencies" to load common/shared code).
 * Keep using importScript