From eca7227ca147d1b2346d37400491d829f8abdb5a Mon Sep 17 00:00:00 2001 From: theopolisme Date: Wed, 9 Apr 2014 05:53:37 -0500 Subject: [PATCH] Cosmetic: sort dependencies for readability --- src/modules/core.js | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/src/modules/core.js b/src/modules/core.js index 0ae754e..51a3b8e 100644 --- a/src/modules/core.js +++ b/src/modules/core.js @@ -136,11 +136,22 @@ mw.loader.load( AFCH.consts.baseurl + '/hogan.js' ); if ( AFCH.consts.beta ) { - // Load css + // Load minified css mw.loader.load( AFCH.consts.scriptpath + '?action=raw&ctype=text/css&title=MediaWiki:Gadget-afch.css', 'text/css' ); // Load dependencies - mw.loader.load( [ 'mediawiki.feedback', 'mediawiki.api', 'mediawiki.api.category', 'mediawiki.api.titleblacklist', - 'jquery.chosen', 'jquery.spinner' ] ); + mw.loader.load( [ + // jquery resources + 'jquery.chosen', + 'jquery.spinner', + + // mediawiki.api + 'mediawiki.api', + 'mediawiki.api.category', + 'mediawiki.api.titleblacklist', + + // mediawiki plugins + 'mediawiki.feedback' + ] ); } // And finally load the subscript