PerformanceNavigationTiming

The PerformanceNavigationTiming interface provides methods and properties to store and retrieve metrics regarding the browser's document navigation events. For example, this interface can be used to determine how much time it takes to load or unload a document.

MDN Reference

Properties

Link copied to clipboard
open external val connectEnd: DOMHighResTimeStamp
Link copied to clipboard
Link copied to clipboard
open external val contentType: String
Link copied to clipboard
open external val decodedBodySize: UInt53
Link copied to clipboard
open external val deliveryType: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open external val domComplete: DOMHighResTimeStamp

The domComplete read-only property returns a DOMHighResTimeStamp representing the time immediately before the user agent sets the document's readyState to "complete".

Link copied to clipboard

The domContentLoadedEventEnd read-only property returns a DOMHighResTimeStamp representing the time immediately after the current document's DOMContentLoaded event handler completes.

Link copied to clipboard

The domContentLoadedEventStart read-only property returns a DOMHighResTimeStamp representing the time immediately before the current document's DOMContentLoaded event handler starts.

Link copied to clipboard

The domInteractive read-only property returns a DOMHighResTimeStamp representing the time immediately before the user agent sets the document's readyState to "interactive".

Link copied to clipboard
open external val duration: DOMHighResTimeStamp
Link copied to clipboard
open external val encodedBodySize: UInt53
Link copied to clipboard
open external val entryType: String
Link copied to clipboard
open external val fetchStart: DOMHighResTimeStamp
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open external val initiatorType: String
Link copied to clipboard

The loadEventEnd read-only property returns a DOMHighResTimeStamp representing the time immediately after the current document's load event handler completes.

Link copied to clipboard

The loadEventStart read-only property returns a DOMHighResTimeStamp representing the time immediately before the current document's load event handler starts.

Link copied to clipboard
open external val name: String
Link copied to clipboard
open external val nextHopProtocol: String
Link copied to clipboard
open external val redirectCount: Short

The redirectCount read-only property returns a number representing the number of redirects since the last non-redirect navigation in the current browsing context.

Link copied to clipboard
open external val redirectEnd: DOMHighResTimeStamp
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open external val responseEnd: DOMHighResTimeStamp
Link copied to clipboard
Link copied to clipboard
open external val responseStatus: Short
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open external val startTime: DOMHighResTimeStamp
Link copied to clipboard
open external val transferSize: UInt53
Link copied to clipboard
open external val type: NavigationTimingType

The type read-only property returns the type of navigation.

Link copied to clipboard

The unloadEventEnd read-only property returns a DOMHighResTimeStamp representing the time immediately after the previous document's unload event handler completes.

Link copied to clipboard

The unloadEventStart read-only property returns a DOMHighResTimeStamp representing the time immediately before the previous document's unload event handler starts.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open external val workerStart: DOMHighResTimeStamp

Functions

Link copied to clipboard
open external override fun toJSON(): JsAny

The toJSON() method of the PerformanceNavigationTiming interface returns a JSON-serializable plain object representing the PerformanceNavigationTiming object.