src/common/js/embed/performance.js
/**
     * gather and calculate page load performance data
     */
gather and calculate page load performance data
gather and calculate page load performance data
function analyzePageLoad() {
        var t = performance.timing;
        var entry = {
            timeToFirstByte       : t.responseStart - t.navigationStart,
            timeToConnect         : t.connectStart - t.fetchStart,
            timeToDomContentLoaded: t.domContentLoadedEventStart - t.domLoading,
            timeToDomInteractive  : t.domInteractive - t.domLoading,
            timeToDomOnLoad       : t.loadEventStart - t.domLoading,
            timeToFirstPaint      : getFirstPaintTime()
        };
        transmit('page', entry);
    }
function analyzePageLoad ( ) { var t = performance . timing ; var entry = { timeToFirstByte : t . responseStart - t . navigationStart , timeToConnect : t . connectStart - t . fetchStart , timeToDomContentLoaded : t . domContentLoadedEventStart - t . domLoading , timeToDomInteractive : t . domInteractive - t . domLoading , timeToDomOnLoad : t . loadEventStart - t . domLoading , timeToFirstPaint : getFirstPaintTime ( ) } ; transmit ( 'page' , entry ) ; }
gather and calculate page load performance data
gather and calculate page load performance data