This interface is deprecated in the Navigation Timing Level 2 specification. Please use the PerformanceNavigationTiming
interface instead.
The PerformanceTiming
interface is a legacy interface kept for backwards compatibility and contains properties that offer performance timing information for various events which occur during the loading and use of the current page. You get a PerformanceTiming
object describing your page using the window.performance.timing
property.
The PerformanceTiming
interface doesn't inherit any properties.
These properties each describe the time at which a particular point in the page loading process was reached. Some correspond to DOM events; others describe the time at which internal browser operations of interest took place.
Each time is provided as an unsigned long long
representing the moment, in milliseconds since the UNIX epoch
These properties are listed in the order in which they occur during the navigation process.
PerformanceTiming.navigationStart
Read only
PerformanceTiming.fetchStart
.PerformanceTiming.unloadEventStart
Read only
unload
event has been thrown, indicating the time at which the previous document in the window began to unload. If there is no previous document, or if the previous document or one of the needed redirects is not of the same origin, the value returned is 0
.PerformanceTiming.unloadEventEnd
Read only
unload
event handler finishes. If there is no previous document, or if the previous document, or one of the needed redirects, is not of the same origin, the value returned is 0
.PerformanceTiming.redirectStart
Read only
0
.PerformanceTiming.redirectEnd
Read only
0
.PerformanceTiming.fetchStart
Read only
PerformanceTiming.domainLookupStart
Read only
PerformanceTiming.fetchStart
.PerformanceTiming.domainLookupEnd
Read only
PerformanceTiming.fetchStart
.PerformanceTiming.connectStart
Read only
PerformanceTiming.fetchStart
.PerformanceTiming.connectEnd
Read only
PerformanceTiming.fetchStart
. A connection is considered as opened when all secure connection handshake, or SOCKS authentication, is terminated.PerformanceTiming.secureConnectionStart
Read only
0
.PerformanceTiming.requestStart
Read only
PerformanceTiming.responseStart
Read only
PerformanceTiming.responseEnd
Read only
PerformanceTiming.domLoading
Read only
Document.readyState
changes to 'loading'
and the corresponding readystatechange
event is thrown.PerformanceTiming.domInteractive
Read only
Document.readyState
changes to 'interactive'
and the corresponding readystatechange
event is thrown.PerformanceTiming.domContentLoadedEventStart
Read only
DOMContentLoaded
event, that is right after all the scripts that need to be executed right after parsing have been executed.PerformanceTiming.domContentLoadedEventEnd
Read only
PerformanceTiming.domComplete
Read only
Document.readyState
changes to 'complete'
and the corresponding readystatechange
event is thrown.PerformanceTiming.loadEventStart
Read only
load
event was sent for the current document. If this event has not yet been sent, it returns 0.
PerformanceTiming.loadEventEnd
Read only
load
event handler terminated, that is when the load event is completed. If this event has not yet been sent, or is not yet completed, it returns 0.
The PerformanceTiming
interface doesn't inherit any methods.
PerformanceTiming.toJSON()
PerformanceTiming
object.Specification | Status | Comment |
---|---|---|
Navigation Timing The definition of 'PerformanceTiming' in that specification. | Recommendation | Initial definition. |
Desktop | ||||||
---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | |
Basic support | 6 | 12 | 7 | 9 | 15 | 8 |
connectEnd
|
6 | Yes | 7 | 9 | 15 | No |
connectStart
|
6 | Yes | 7 | 9 | 15 | No |
domComplete
|
6 | Yes | 7 | 9 | 15 | No |
domContentLoadedEventEnd
|
6 | Yes | 7 | 9 | 15 | 8 |
domContentLoadedEventStart
|
6 | Yes | 7 | 9 | 15 | No |
domInteractive
|
6 | Yes | 7 | 9 | 15 | No |
domLoading
|
6 | Yes | 7 | 9 | 15 | No |
domainLookupEnd
|
6 | Yes | 7 | 9 | 15 | No |
domainLookupStart
|
6 | Yes | 7 | 9 | 15 | No |
fetchStart
|
6 | Yes | 7 | 9 | 15 | Yes |
loadEventEnd
|
6 | Yes | 7 | 9 | 15 | No |
loadEventStart
|
6 | Yes | 7 | 9 | 15 | No |
navigationStart
|
6 | Yes | 7 | 9 | 15 | Yes |
redirectEnd
|
6 | Yes | 7 | 9 | 15 | No |
redirectStart
|
6 | Yes | 7 | 9 | 15 | No |
requestStart
|
6 | Yes | 7 | 9 | 15 | No |
responseEnd
|
6 | Yes | 7 | 9 | 15 | No |
responseStart
|
6 | Yes | 7 | 9 | 15 | No |
secureConnectionStart
|
6 | 18 | 56 | 9 | 15 | No |
toJSON
|
44 | Yes | 25 | 9 | 32 | Yes |
unloadEventEnd
|
6 | Yes | 7 | 9 | 15 | No |
unloadEventStart
|
6 | Yes | 7 | 9 | 15 | No |
Mobile | |||||||
---|---|---|---|---|---|---|---|
Android webview | Chrome for Android | Edge Mobile | Firefox for Android | Opera for Android | iOS Safari | Samsung Internet | |
Basic support | Yes | Yes | Yes | 7 | 15 | 9.2 | ? |
connectEnd
|
Yes | Yes | Yes | 7 | 15 | No | ? |
connectStart
|
Yes | Yes | Yes | 7 | 15 | No | ? |
domComplete
|
Yes | Yes | Yes | 7 | 15 | No | ? |
domContentLoadedEventEnd
|
Yes | Yes | Yes | 7 | 15 | 9.2 | ? |
domContentLoadedEventStart
|
Yes | Yes | Yes | 7 | 15 | No | ? |
domInteractive
|
Yes | Yes | Yes | 7 | 15 | No | ? |
domLoading
|
Yes | Yes | Yes | 7 | 15 | No | ? |
domainLookupEnd
|
Yes | Yes | Yes | 7 | 15 | No | ? |
domainLookupStart
|
Yes | Yes | Yes | 7 | 15 | No | ? |
fetchStart
|
Yes | Yes | Yes | 7 | 15 | Yes | ? |
loadEventEnd
|
Yes | Yes | Yes | 7 | 15 | No | ? |
loadEventStart
|
Yes | Yes | Yes | 7 | 15 | No | ? |
navigationStart
|
Yes | Yes | Yes | 7 | 15 | Yes | ? |
redirectEnd
|
Yes | Yes | Yes | 7 | 15 | No | ? |
redirectStart
|
Yes | Yes | Yes | 7 | 15 | No | ? |
requestStart
|
Yes | Yes | Yes | 7 | 15 | No | ? |
responseEnd
|
Yes | Yes | Yes | 7 | 15 | No | ? |
responseStart
|
Yes | Yes | Yes | 7 | 15 | No | ? |
secureConnectionStart
|
Yes | Yes | ? | 56 | 15 | No | ? |
toJSON
|
44 | 44 | Yes | 25 | 32 | Yes | ? |
unloadEventEnd
|
Yes | Yes | Yes | 7 | 15 | No | ? |
unloadEventStart
|
Yes | Yes | Yes | 7 | 15 | No | ? |
Performance.timing
property that creates such an object.
© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming