2009/11/27 Tim Starling
<tstarling(a)wikimedia.org>rg>:
...
loadGM(), gM(): misnamed, neither should be
global, excessively
abbreviated and unintelligible function names. I suggest adding
mw.getMsg() and mw.addMessages() to wikibits.js.
$j: idiosyncratic, what's wrong with calling jQuery jQuery like
everyone else?
I have no idea why that was done. Note that the 'normal' alias for
jQuery (the one it also defines itself) is $ .
I believe I read a note saying it was for compatibility with other
javascript libraries that set $ to other things.
IMHO the recommended technique should just be used instead of another alias:
(function($) {
// your code here
})(jQuery);