User:Murph9000/sandbox.js

/** * Example generic script wrapper, with basic debugging */ ( function ( mw, $ ) {	'use strict';	var FILE = 'User:Example/example.js';	console.info( FILE, 'starting' );

$.when(		mw.loader.using( [ // Modules your code uses, for example: 'mediawiki.Title', 'mediawiki.Uri', 'mediawiki.util', ] ),		$.ready	).done( function {		console.log( FILE, 'ready' );

// Your code here // Listed modules have been loaded // Document is ready (DOM fully loaded)

console.log( FILE, 'done' ); } ); } )( mediaWiki, jQuery );