User:The Transhumanist/Workshop boilerplate/Load dependencies

Load dependencies
Many of my scripts create menu items using, which is provided in a resource module. Therefore, in those scripts it is necessary to make sure the supporting resource module (mediawiki.util) is loaded, otherwise the script could fail (though it could still work if the module happened to already be loaded by some other script). To load the module, use mw.loader, like this:

is explained at ResourceLoader/Core modules.

For more information, see the API Documentation for mw.loader.