PerformanceNavigationTiming
The PerformanceNavigationTiming
interface provides methods and properties to store and retrieve metrics regarding the browser's document navigation events.
Properties
The connectEnd
read-only property returns the DOMHighResTimeStamp immediately after the browser finishes establishing the connection to the server to retrieve the resource.
The connectStart
read-only property returns the DOMHighResTimeStamp immediately before the user agent starts establishing the connection to the server to retrieve the resource.
The decodedBodySize
read-only property returns the size (in octets) received from the fetch (HTTP or cache) of the message body after removing any applied content encoding (like gzip or Brotli).
The domainLookupEnd
read-only property returns the DOMHighResTimeStamp immediately after the browser finishes the domain-name lookup for the resource.
The domainLookupStart
read-only property returns the DOMHighResTimeStamp immediately before the browser starts the domain name lookup for the resource.
The domComplete
read-only property returns a DOMHighResTimeStamp representing the time immediately before the user agent sets the document's readyState
to 'complete'
.
The domContentLoadedEventEnd
read-only property returns a DOMHighResTimeStamp representing the time immediately after the current document's DOMContentLoaded
event handler completes.
The domContentLoadedEventStart
read-only property returns a DOMHighResTimeStamp representing the time immediately before the current document's DOMContentLoaded
event handler starts.
The domInteractive
read-only property returns a DOMHighResTimeStamp representing the time immediately before the user agent sets the document's readyState
to 'interactive'
.
The read-only duration
property returns a DOMHighResTimeStamp that is the duration of the PerformanceEntry.
The encodedBodySize
read-only property represents the size (in octets) received from the fetch (HTTP or cache) of the payload body before removing any applied content encodings (like gzip or Brotli).
The fetchStart
read-only property represents a DOMHighResTimeStamp immediately before the browser starts to fetch the resource.
The initiatorType
read-only property is a string representing web platform feature that initiated the resource load.
The loadEventEnd
read-only property returns a DOMHighResTimeStamp representing the time immediately after the current document's load
event handler completes.
The loadEventStart
read-only property returns a DOMHighResTimeStamp representing the time immediately before the current document's load
event handler starts.
The nextHopProtocol
read-only property is a string representing the network protocol used to fetch the resource, as identified by the ALPN Protocol ID (RFC7301).
The redirectCount
read-only property returns a number representing the number of redirects since the last non-redirect navigation in the current browsing context.
The redirectEnd
read-only property returns a DOMHighResTimeStamp immediately after receiving the last byte of the response of the last redirect.
The redirectStart
read-only property returns a DOMHighResTimeStamp representing the start time of the fetch which that initiates the redirect.
The requestStart
read-only property returns a DOMHighResTimeStamp of the time immediately before the browser starts requesting the resource from the server, cache, or local resource.
The responseEnd
read-only property returns a DOMHighResTimeStamp immediately after the browser receives the last byte of the resource or immediately before the transport connection is closed, whichever comes first.
The responseStart
read-only property returns a DOMHighResTimeStamp immediately after the browser receives the first byte of the response from the server, cache, or local resource.
The responseStatus
read-only property represents the HTTP response status code returned when fetching the resource.
The secureConnectionStart
read-only property returns a DOMHighResTimeStamp immediately before the browser starts the handshake process to secure the current connection.
The serverTiming
read-only property returns an array of PerformanceServerTiming entries containing server timing metrics.
The read-only startTime
property returns the first DOMHighResTimeStamp recorded for this PerformanceEntry.
The transferSize
read-only property represents the size (in octets) of the fetched resource.
The type
read-only property returns the type of navigation.
The unloadEventEnd
read-only property returns a DOMHighResTimeStamp representing the time immediately after the current document's unload
event handler completes.
The unloadEventStart
read-only property returns a DOMHighResTimeStamp representing the time immediately before the current document's unload
event handler starts.
The workerStart
read-only property of the PerformanceResourceTiming interface returns a The workerStart
property can have the following values: - A DOMHighResTimeStamp.