jquery.migrate: Instrument with mw.track()
authorTimo Tijhof <krinklemail@gmail.com>
Fri, 18 Aug 2017 01:20:40 +0000 (18:20 -0700)
committerTimo Tijhof <krinklemail@gmail.com>
Fri, 18 Aug 2017 01:20:40 +0000 (18:20 -0700)
commit4107d1d4df7874bb1a73211582754ab4f17b7b7a
treebe0d0ffc3429642dd00dbe3d501525e62fdd557f
parentfbcb7b95433bbd01af2d06e516bba00559e564cb
jquery.migrate: Instrument with mw.track()

Inspired by cb20b5aa5a68d, which added similar instrumentation
during the jQuery 1.11 migration for MediaWiki in 2014.

This way we can plot overall usage in a Grafana dashboard and
help us track the progres of the on-going migration.

Bug: T124742
Change-Id: Ifab13d52d5681189cfb2faae342373558369b8c0
resources/lib/jquery/jquery.migrate.js