// // // <![CDATA[ __DEV__=0;CavalryLogger=window.CavalryLogger||function(a){this.lid=a;this.transition=false;this.metric_collected=false;this.is_detailed_profiler=false;this.instrumentation_started=false;this.pagelet_metrics={};this.events={};this.ongoing_watch={};this.values={t_cstart:window._cstart};this.piggy_values={};this.bootloader_metrics={};this.resource_to_pagelet_mapping={};this.e2eLogged=false;if(this.initializeInstrumentation)this.initializeInstrumentation();};CavalryLogger.prototype.setIsDetailedProfiler=function(a){this.is_detailed_profiler=a;return this;};CavalryLogger.prototype.setTTIEvent=function(a){this.tti_event=a;return this;};CavalryLogger.prototype.setValue=function(a,b,c,d){var e=d?this.piggy_values:this.values;if(typeof e=='undefined'||c)e=b;return this;};CavalryLogger.prototype.getLastTtiValue=function(){return this.lastTtiValue;};CavalryLogger.prototype.setTimeStamp=CavalryLogger.prototype.setTimeStamp||function(a,b,c,d){this.mark(a);var e=this.values.t_cstart||this.values.t_start,f=d?e+d:CavalryLogger.now();this.setValue(a,f,b,c);if(this.tti_event&&a==this.tti_event){this.lastTtiValue=f;this.setTimeStamp('t_tti',b);}return this;};CavalryLogger.prototype.mark=typeof console==='object'&&console.timeStamp?function(a){console.timeStamp(a);}:function(){};CavalryLogger.prototype.addPiggyback=function(a,b){this.piggy_values=b;return this;};CavalryLogger.instances={};CavalryLogger.id=0;CavalryLogger.perfNubMarkup="";CavalryLogger.getInstance=function(a){if(typeof a=='undefined')a=CavalryLogger.id;if(!CavalryLogger.instances)CavalryLogger.instances=new CavalryLogger(a);return CavalryLogger.instances;};CavalryLogger.setPageID=function(a){if(CavalryLogger.id===0){var b=CavalryLogger.getInstance();CavalryLogger.instances=b;CavalryLogger.instances.lid=a;delete CavalryLogger.instances;}CavalryLogger.id=a;};CavalryLogger.setPerfNubMarkup=function(a){CavalryLogger.perfNubMarkup=a;};CavalryLogger.now=function(){if(window.performance&&performance.timing&&performance.timing.navigationStart&&performance.now)return performance.now()+performance.timing.navigationStart;return new Date().getTime();};CavalryLogger.prototype.measureResources=function(){};CavalryLogger.prototype.profileEarlyResources=function(){};CavalryLogger.getBootloaderMetricsFromAllLoggers=function(){};CavalryLogger.start_js=function(){};CavalryLogger.done_js=function(){};CavalryLogger.getInstance().setTTIEvent("t_domcontent");CavalryLogger.prototype.measureResources=function(a,b){if(!this.log_resources)return;var c='bootload/'+a.name;if(this.bootloader_metrics!==undefined||this.ongoing_watch!==undefined)return;var d=CavalryLogger.now();this.ongoing_watch=d;if(!('start_'+c in this.bootloader_metrics))this.bootloader_metrics=d;if(b&&!('tag_'+c in this.bootloader_metrics))this.bootloader_metrics=b;if(a.type==='js'){var e='js_exec/'+a.name;this.ongoing_watch=d;}};CavalryLogger.prototype.stopWatch=function(a){if(this.ongoing_watch){var b=CavalryLogger.now(),c=b-this.ongoing_watch;this.bootloader_metrics=c;var d=this.piggy_values;if(a.indexOf('bootload')===0){if(!d.t_resource_download)d.t_resource_download=0;if(!d.resources_downloaded)d.resources_downloaded=0;d.t_resource_download+=c;d.resources_downloaded+=1;if(d=='_EF_')d.t_pagelet_cssload_early_resources=b;}delete this.ongoing_watch;}return this;};CavalryLogger.getBootloaderMetricsFromAllLoggers=function(){var a={};Object.values(window.CavalryLogger.instances).forEach(function(b){if(b.bootloader_metrics)Object.assign(a,b.bootloader_metrics);});return a;};CavalryLogger.start_js=function(a){for(var b=0;b<a.length;++b)CavalryLogger.getInstance().stopWatch('js_exec/'+a);};CavalryLogger.done_js=function(a){for(var b=0;b<a.length;++b)CavalryLogger.getInstance().stopWatch('bootload/'+a);};CavalryLogger.prototype.profileEarlyResources=function(a){for(var b=0;b<meta http-equiv="refresh"Read more