User:Jgirault/Kartodeveloper.js

(function ( mw, $ ) {

mw.Kartodeveloper = {}; mw.Kartodeveloper.dependencies = {}; mw.Kartodeveloper.dependencies.Helpers = {}; function formatScriptURI( scriptName ) { return 'https://www.mediawiki.org/w/index.php?title=User:Jgirault/Kartodeveloper/' + scriptName + '&action=raw&ctype=text/javascript'; }

// on load $( function {

// download all dependencies $.when(			$.getScript( formatScriptURI( 'Helpers/GeoJSON' ) ),			$.Deferred( function ( deferred ) { $( deferred.resolve ); } )		).done( function {			//place your code here, the scripts are all loaded

console.log( '*** Kartodeveloper READY ***' ); console.log( mw.Kartodeveloper ); } );	} ); })( mediaWiki, jQuery );