Add mediawiki.inspect module
authorOri Livneh <ori@wikimedia.org>
Tue, 8 Oct 2013 06:08:54 +0000 (23:08 -0700)
committerTimo Tijhof <krinklemail@gmail.com>
Wed, 9 Oct 2013 21:55:31 +0000 (23:55 +0200)
commit0afecbaf07e6b540f3c09ffa83ddd9030ba3ec07
tree528ba5ea9efdc842807428094980a83ca5c7e8ab
parent51833b036fad49e68d12e1f89b56fd098439f870
Add mediawiki.inspect module

This patch adds a mediawiki.inspect ResourceLoader module. The module contains
tools for inspecting page composition and performance. It is currently
restricted to a set of static methods for querying the ResourceLoader module
registry, the most useful of which is #inspectLoadedModules, which prints a
list of loaded ResourceLoader modules and their size in kilobytes, ordered from
largest to smallest. This method has a lazy-loading alias: mw.loader.inspect.

Change-Id: I5a007fdf11196664f425cd7800eec7fc3fdb629f
maintenance/jsduck/categories.json
maintenance/jsduck/config.json
resources/Resources.php
resources/mediawiki/mediawiki.inspect.js [new file with mode: 0644]
resources/mediawiki/mediawiki.js