This is also part of MW's coding conventions:
https://www.mediawiki.org/wiki/Manual:Coding_conventions/JavaScript#jQuery