2 var cdxFeatures;function cdxNavigationTiming(a){this.timing=a.timing}cdxNavigationTiming.prototype.go=function(c){if(this.timing){var a=cdxFeatures,b=a.reqs[c];this.report(b,"fetchStart","loadEventEnd","HTTP_NAVTIME_FULLPAGELOAD","SSL_NAVTIME_FULLPAGELOAD");this.report(b,"responseStart","responseEnd","HTTP_NAVTIME_RESPONSE","SSL_NAVTIME_RESPONSE");this.report(b,"responseEnd","loadEventEnd","HTTP_NAVTIME_PROCLOAD","SSL_NAVTIME_PROCLOAD");a.submitReportBatch()}};cdxNavigationTiming.prototype.report=function(e,g,d,i,b){var h=cdxFeatures,a=this.timing[g],f=this.timing[d],c;if(a&&f){c=f-a;if(c<=e.maxNavTimingValue){h.addReport("f1",e,e.zid+"/"+e.cid+"/"+e.pid+"/"+cdxCore.getProbeTypeCode((location.protocol==="https:")?b:i)+"/0/"+c.toString(10))}}return c};(function(){var a;if(cdxFeatures&&!cdxFeatures.navigationTiming){a=window.performance||window.mozPerformance||window.msPerformance||window.webkitPerformance||{};cdxFeatures.navigationTiming=new cdxNavigationTiming(a)}}()); |
|