mediawiki-extensions-Visual.../modules/ve-mw/init
Ori Livneh 56a9484149 Filter DOM load/save deferreds through ve.track callback
Binding ve.init.mw.Target#onLoad and the anonymous function which calls ve#track
with timing data to the resolution of the same deferred makes the timing
measurement sensitive to how long it takes ve.init.mw.Target#onLoad to yield,
which in turns depends on whether the requisite ResourceLoader modules for
setting up the editing surface are ready. This muddles the definition of what
we're actually measuring, making it dependent on a race condition.

This patch moves the tracking call to a filter function through which the jqXHR
deferred is threaded. This ensures that the 'duration' datapoint on the domSave
and domLoad events captures just the time spent talking with the API.

Change-Id: I6e162014a4043d4ff9422131ae87fb25d0ab4c29
2013-10-23 22:44:27 -07:00
..
styles Make the save dialog an actual dialog 2013-10-07 15:59:00 -07:00
targets Fix save dialog crash on load error 2013-10-22 01:15:35 +02:00
ve.init.mw.js The great directory split of 2013 2013-07-02 20:51:38 -07:00
ve.init.mw.Platform.js Remove ve.{inheritClass,mixinClass} and use OO instead 2013-10-18 18:58:08 +02:00
ve.init.mw.Target.js Filter DOM load/save deferreds through ve.track callback 2013-10-23 22:44:27 -07:00