Skip to content

8788/web-performance-extension

Repository files navigation

web-performance-extension

chrome webstore

Screenshot

popup

Performance API Details

performance

Calc

// Time spent during redirection
const redirect = performance.timing.redirectEnd - performance.timing.redirectStart

// AppCache
const appCache = performance.timing.domainLookupStart - performance.timing.fetchStart

// DNS query time
const DNS = performance.timing.domainLookupEnd - performance.timing.domainLookupStart

// TCP connection time
const TCP = performance.timing.connectEnd - performance.timing.connectStart

// Time to first byte
const request = performance.timing.responseStart - performance.timing.requestStart

// Server response time
const response = performance.timing.responseEnd - performance.timing.responseStart

// Dom processing time
const processing = performance.timing.domComplete - performance.timing.responseEnd

// Load event time
const onload = performance.timing.loadEventEnd - performance.timing.loadEventStart