mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-28 16:20:52 +00:00
Merge "Rename performance.parsoid.domLoad to performance.domLoad"
This commit is contained in:
commit
5dd44dab93
|
@ -543,7 +543,7 @@ ve.init.mw.Target.prototype.load = function () {
|
|||
.fail( ve.bind( ve.init.mw.Target.onLoadError, this ) );
|
||||
|
||||
this.loading.done( function ( data, status, jqxhr ) {
|
||||
ve.track( 'performance.parsoid.domLoad', {
|
||||
ve.track( 'performance.domLoad', {
|
||||
'bytes': $.byteLength( jqxhr.responseText ),
|
||||
'duration': ve.now() - start,
|
||||
'cacheHit': /hit/i.test( jqxhr.getResponseHeader( 'X-Cache' ) ),
|
||||
|
@ -602,7 +602,7 @@ ve.init.mw.Target.prototype.save = function ( doc, options ) {
|
|||
.fail( ve.bind( ve.init.mw.Target.onSaveError, this ) );
|
||||
|
||||
this.saving.done( function ( data, status, jqxhr ) {
|
||||
ve.track( 'performance.parsoid.domSave', {
|
||||
ve.track( 'performance.domSave', {
|
||||
'bytes': $.byteLength( jqxhr.responseText ),
|
||||
'duration': ve.now() - start,
|
||||
'parsoid': jqxhr.getResponseHeader( 'X-Parsoid-Performance' )
|
||||
|
|
Loading…
Reference in a new issue