src/common/js/embed/performance.js
/**
     * gather and calculate ajax performance data
     */
gather and calculate ajax performance data
gather and calculate ajax performance data
function analyzeXhrLoad() {
        var entries = getXhrPerformanceEntries().map(function (e) {
            return {
                url            : e.name,
                timeToFirstByte: Math.round(e.responseStart - e.startTime),
                timeToConnect  : Math.round(e.connectStart - e.fetchStart),
                timeToOnLoad   : Math.round(e.duration)
            };
        });
        if (entries.length) {
            transmit('ajax', entries);
        }
    }
function analyzeXhrLoad ( ) { var entries = getXhrPerformanceEntries ( ) . map ( function ( e ) { return { url : e . name , timeToFirstByte : Math . round ( e . responseStart - e . startTime ) , timeToConnect : Math . round ( e . connectStart - e . fetchStart ) , timeToOnLoad : Math . round ( e . duration ) } ; } ) ; if ( entries . length ) { transmit ( 'ajax' , entries ) ; } }
gather and calculate ajax performance data
gather and calculate ajax performance data