performanceTiming object
Collects time measurements that are recorded while a webpage is loaded and presented to the user.
This object is not supported for Windows Store apps using JavaScript.
![]() |
Members
The performanceTiming object has these types of members:
Properties
The performanceTiming object has these properties.
| Property | Access type | Description |
|---|---|---|
|
Gets the time that the user agent finishes establishing the connection to the server to retrieve the current document. | ||
|
Gets the time immediately before the user agent starts establishing the connection to the server to retrieve the document. | ||
|
The domainLookupEnd property must return the time immediately after the user agent finishes the domain name lookup for the current document. If a persistent connection is used or the current document is retrieved from relevant application caches or local resources, this property must return the same value as fetchStart. | ||
|
The domainLookupStart property must return the time immediately before the user agent starts the domain name lookup for the current document. If a persistent connection is used or the current document is retrieved from relevant application caches or local resources, this attribute must return the same value as fetchStart. | ||
|
The domComplete property must return the time immediately before the user agent sets the current document readiness to complete. | ||
| Read-only |
Returns the time, in milliseconds, immediately after the document's DOMContentLoaded event completes. | |
|
The domContentLoadedEventStart property must return the time immediately before the user agent fires the DOMContentLoaded event of the document. | ||
|
The domInteractive property must return the time immediately before the user agent sets the current document readiness to interactive. | ||
|
The domLoading property must return the time immediately before the user agent sets the current document readiness to loading. | ||
|
Gets the time when the user agent starts fetching the resource. | ||
|
The loadEventEnd property must return the time when the load event of the current document is completed. It must return zero when the load event is not fired or is not completed. | ||
|
The loadEventStart property must return the time immediately before the load event of the current document is fired. It must return zero if the load event has not been fired. | ||
|
Gets the time when the document loaded by the window object began to be displayed to the user. | ||
|
The navigationStart property must return the time immediately after the user agent finishes prompting to unload the previous document. If there is no previous document, this property must return the same value as fetchStart. | ||
|
If there are HTTP redirects or equivalent when navigating and all redirects and equivalents are from the same origin, the redirectEnd property must return the time immediately after receiving the last byte of the response of the last redirect. Otherwise, this property must return zero. | ||
|
If there are HTTP redirects or equivalent when navigating and if all the redirects or equivalent are from the same origin, the redirectStart property must return the starting time of the fetch that initiates the redirect. Otherwise, this attribute must return zero. | ||
|
The requestStart property must return the time immediately before the user agent starts requesting the current document from the server, from relevant application caches, or from local resources. | ||
|
The responseEnd property must return the time immediately after the user agent receives the last byte of the current document or immediately before the transport connection is closed, whichever comes first. The document here can be received either from the server, relevant application caches, or from local resources. | ||
|
The responseStart property must return the time immediately after the user agent receives the first byte of the response from the server, from relevant application caches, or from local resources. | ||
|
If the previous document and the current document have the same origin, the unloadEventEnd property must return the time immediately after the user agent finishes the unload event of the previous document. If there is no previous document or the previous document has a different origin than the current document, or the unload is not yet completed, this attribute must return zero. | ||
|
If the previous document and the current document have the same origin, the unloadEventStart property must return the time immediately before the user agent starts the unload event of the previous document. If there is no previous document or the previous document has a different origin than the current document, this attribute must return zero. |
Standards information
- Navigation Timing, Section 4.2
Remarks
When a webpage is displayed in Windows Internet Explorer 9 mode, Windows Internet Explorer records timestamps that correspond to the time when various steps occurred during the process used to load a document. Each property of the performanceTiming object corresponds to one of these timestamps.
This object is not supported for Windows Store apps using JavaScript.
The built-in performance marks occur in the following order:
- navigationStart
- redirectStart
- unloadEventStart
- unloadEventEnd
- redirectEnd
- fetchStart
- domainLookupStart
- domainLookupEnd
- connectStart
- connectEnd
- requestStart
- responseStart
- responseEnd
- domLoading
- domInteractive
- domContentLoadedEventStart
- domContentLoadedEventEnd
- domComplete
- loadEventStart
- loadEventEnd
- msFirstPaint
The properties of the performanceTiming object represent the number of milliseconds that have elapsed between midnight January 1, 1970 and the time the measurement was recorded.
