Manual:$wgResourceModules

Examples
Below is an example of how to use this in an extension.

You would put this in your   file.

Options
See $wgResourceModules.

Loading module
See :