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
Link copied to clipboard
Link copied to clipboard
external val contentType: String
Link copied to clipboard
external val decodedBodySize: UInt53
Link copied to clipboard
external val deliveryType: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

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
Link copied to clipboard
external val encodedBodySize: UInt53
Link copied to clipboard
external val entryType: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
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
external val name: String
Link copied to clipboard
external val nextHopProtocol: String
Link copied to clipboard
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
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
external val responseStatus: Short
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
external val transferSize: UInt53
Link copied to clipboard

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

Functions

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

The toJSON() method of the PerformanceNavigationTiming interface is a serializer; it returns a JSON representation of the PerformanceNavigationTiming object.