class PerformanceNavigationTiming
package js.html
extends PerformanceResourceTiming › PerformanceEntry
Available on js
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.
Documentation PerformanceNavigationTiming by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See also:
Variables
read onlydomComplete:Float
A DOMHighResTimeStamp
representing a time value equal to the time immediately before the browser sets the current document readiness of the current document to complete.
read onlydomContentLoadedEventEnd:Float
A DOMHighResTimeStamp
representing the time value equal to the time immediately after the current document's DOMContentLoaded event completes.
read onlydomContentLoadedEventStart:Float
A DOMHighResTimeStamp
representing the time value equal to the time immediately before the user agent fires the DOMContentLoaded event at the current document.
read onlydomInteractive:Float
A DOMHighResTimeStamp
representing a DOMHighResTimeStamp
representing the time value equal to the time immediately before the user agent sets the current document readiness of the current document to interactive.
read onlyloadEventEnd:Float
A DOMHighResTimeStamp
representing the time when the load event of the current document is completed.
read onlyloadEventStart:Float
A DOMHighResTimeStamp
representing the time value equal to the time immediately before the load event of the current document is fired.
read onlyredirectCount:Int
A number representing the number of redirects since the last non-redirect navigation under the current browsing context.
read onlytype:NavigationType
A DOMString
representing the navigation type. Must be: "navigate
", "reload
", "back_forward
" or "prerender
".
read onlyunloadEventEnd:Float
A DOMHighResTimeStamp
representing the time value equal to the time immediately after the user agent finishes the unload event of the previous document.
read onlyunloadEventStart:Float
A DOMHighResTimeStamp
representing the time value equal to the time immediately before the user agent starts the unload event of the previous document.
Methods
toJSON():Dynamic
Returns a DOMString
that is the JSON representation of the PerformanceNavigationTiming
object.