Manual:$wgResourceModules

Details

 * index
 * camelCase


 * scripts
 * styles

Examples
Here's a basic example for usage in an extension. You'd put this in the main php file like /extensions/Vector/Vector.php
 * Advanced example in Extension:Vector

Sample where all features are used:

Loading module
See also ResourceLoader/Documentation/Using_with_extensions: