mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-29 00:30:44 +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 ) );
|
.fail( ve.bind( ve.init.mw.Target.onLoadError, this ) );
|
||||||
|
|
||||||
this.loading.done( function ( data, status, jqxhr ) {
|
this.loading.done( function ( data, status, jqxhr ) {
|
||||||
ve.track( 'performance.parsoid.domLoad', {
|
ve.track( 'performance.domLoad', {
|
||||||
'bytes': $.byteLength( jqxhr.responseText ),
|
'bytes': $.byteLength( jqxhr.responseText ),
|
||||||
'duration': ve.now() - start,
|
'duration': ve.now() - start,
|
||||||
'cacheHit': /hit/i.test( jqxhr.getResponseHeader( 'X-Cache' ) ),
|
'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 ) );
|
.fail( ve.bind( ve.init.mw.Target.onSaveError, this ) );
|
||||||
|
|
||||||
this.saving.done( function ( data, status, jqxhr ) {
|
this.saving.done( function ( data, status, jqxhr ) {
|
||||||
ve.track( 'performance.parsoid.domSave', {
|
ve.track( 'performance.domSave', {
|
||||||
'bytes': $.byteLength( jqxhr.responseText ),
|
'bytes': $.byteLength( jqxhr.responseText ),
|
||||||
'duration': ve.now() - start,
|
'duration': ve.now() - start,
|
||||||
'parsoid': jqxhr.getResponseHeader( 'X-Parsoid-Performance' )
|
'parsoid': jqxhr.getResponseHeader( 'X-Parsoid-Performance' )
|
||||||
|
|
Loading…
Reference in a new issue