mw.inspect: decline to report module sizes when in debug mode
authorOri Livneh <ori@wikimedia.org>
Fri, 11 Oct 2013 10:44:33 +0000 (03:44 -0700)
committerOri Livneh <ori@wikimedia.org>
Fri, 11 Oct 2013 10:44:33 +0000 (03:44 -0700)
commit251e4d4acf4704a8bd58492835870087e56ebbee
tree31a1137f3e0ffe0ae921d6f0b2925c431e544007
parent7d1cd6c376c4ae941a8f654815daad75f0146b2e
mw.inspect: decline to report module sizes when in debug mode

- In debug mode, 1 resource = 1 request, so module size is easier to determine
  via the network view of the developer tools in Firefox & WebKit browsers.
- Determining the module size in debug mode in JavaScript would require
  modifying core ResourceLoader code or re-fetching each resource with a
  separate XHR to measure its size.
- It's not worth it.

Bug: 55553
Change-Id: I73d1bb4141c1b6ed64a72fdc416048937a2e1146
resources/mediawiki/mediawiki.inspect.js