Summary
The PerformanceTiming interface represents timing-related performance information for the given page.
An object of this type can be obtained by calling the Performance.timing read-only attribute.
Properties
The PerformanceTiming interface doesn't inherit any property.
PerformanceTiming.navigationStartRead only- Is an
unsigned long longrepresenting the moment, in miliseconds since the UNIX epoch, right after the prompt for unload terminates on the previous document in the same browsing context. If there is no previous document, this value will be the same asPerformanceTiming.fetchStart. PerformanceTiming.unloadEventStartRead only- Is an
unsigned long longrepresenting the moment, in miliseconds since the UNIX epoch, theunloadevent has been thrown. 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 is0. PerformanceTiming.unloadEventEndRead only- Is an
unsigned long longrepresenting the moment, in miliseconds since the UNIX epoch, theunloadevent 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 is0. PerformanceTiming.redirectStartRead only- Is an
unsigned long longrepresenting the moment, in miliseconds since the UNIX epoch, the first HTTP redirect starts. If there is no redirect, or if one of the redirects is not of the same origin, the value returned is0. PerformanceTiming.redirectEndRead only- Is an
unsigned long longrepresenting the moment, in miliseconds since the UNIX epoch, the last HTTP redirect is completed, that is when the last byte of the HTTP response has been received. If there is no redirect, or if one of the redirect is not of the same origin, the value returned is0. PerformanceTiming.fetchStartRead only- Is an
unsigned long longrepresenting the moment, in miliseconds since the UNIX epoch, the browser is ready to fetch the document using an HTTP request. This moment is before the check to any application cache. PerformanceTiming.domainLookupStartRead only- Is an
unsigned long longrepresenting the moment, in miliseconds since the UNIX epoch, where the domain lookup starts. If a persistent connection is used, or the information is stored in a cache or a local resource, the value will be the same asPerformanceTiming.fetchStart. PerformanceTiming.domainLookupEndRead only- Is an
unsigned long longrepresenting the moment, in miliseconds since the UNIX epoch, where the domain lookup is finished. If a persistent connection is used, or the information is stored in a cache or a local resource, the value will be the same asPerformanceTiming.fetchStart. PerformanceTiming.connectStartRead only- Is an
unsigned long longrepresenting the moment, in miliseconds since the UNIX epoch, where the request to open a connection is sent to the network. If the transport layer reports an error and the connection establishment is started again, the last connection establisment start time is given. If a persistent connection is used, the value will be the same asPerformanceTiming.fetchStart. PerformanceTiming.connectEndRead only- Is an
unsigned long longrepresenting the moment, in miliseconds since the UNIX epoch, where the connection is opened network. If the transport layer reports an error and the connection establishment is started again, the last connection establisment end time is given. If a persistent connection is used, the value will be the same asPerformanceTiming.fetchStart. A connection is considered as opened when all secure connection handshake, or SOCKS authentication, is terminated. PerformanceTiming.secureConnectionStartRead only- Is an
unsigned long longrepresenting the moment, in miliseconds since the UNIX epoch, where the secure connection handshake starts. If no such connection is requested, it returns0. PerformanceTiming.requestStartRead only- Is an
unsigned long longrepresenting the moment, in miliseconds since the UNIX epoch, when the browser sent the request to obtain the actual document, from the server or from a cache. If the transport layer fails after the start of the request and the connection is reopened, this property will be set to the time corresponding to the new request. PerformanceTiming.responseStartRead only- Is an
unsigned long longrepresenting the moment, in miliseconds since the UNIX epoch, when the browser received the first byte of the response, from the server from a cache, of from a local resource. PerformanceTiming.responseEndRead only- Is an
unsigned long longrepresenting the moment, in miliseconds since the UNIX epoch, when the browser received the last byte of the response, or when the connection is closed if this happened first, from the server from a cache, of from a local resource. PerformanceTiming.domLoadingRead only- Is an
unsigned long longrepresenting the moment, in miliseconds since the UNIX epoch, when the parser started its work, that is when itsDocument.readyStatechanges to'loading'and the correspondingreadystatechangeevent is thrown. PerformanceTiming.domInteractiveRead only- Is an
unsigned long longrepresenting the moment, in miliseconds since the UNIX epoch, when the parser finished its work on the main document, that is when itsDocument.readyStatechanges to'interactive'and the correspondingreadystatechangeevent is thrown. PerformanceTiming.domContentLoadedEventStartRead only- Is an
unsigned long longrepresenting the moment, in miliseconds since the UNIX epoch, right before the parser sent theDOMContentLoadedevent, that is right after all the scripts that need to be executed right after parsing has been executed. PerformanceTiming.domContentLoadedEventEndRead only- Is an
unsigned long longrepresenting the moment, in miliseconds since the UNIX epoch, right after all the scripts that need to be executed as soon as possible, in order or not, has been executed. PerformanceTiming.domCompleteRead only- Is an
unsigned long longrepresenting the moment, in miliseconds since the UNIX epoch, when the parser finished its work on the main document, that is when itsDocument.readyStatechanges to'complete'and the correspondingreadystatechangeevent is thrown. PerformanceTiming.loadEventStartRead only- Is an
unsigned long longrepresenting the moment, in miliseconds since the UNIX epoch, when theloadevent was sent for the current document. If this event has not yet been sent, it returns0. PerformanceTiming.loadEventEndRead only- Is an
unsigned long longrepresenting the moment, in miliseconds since the UNIX epoch, when theloadevent handler terminated, that is when the load event is completed. If this event has not yet been sent, or is not yet completed, it returns0.
Methods
The PerformanceTiming interface doesn't implement any inherited method.
PerformanceTiming.toJSON()- Is a jsonizer returning a JSON object representing the specific
PerformanceTimingobject.
Specifications
| Specification | Status | Comment |
|---|---|---|
| Navigation Timing The definition of 'PerformanceTiming' in that specification. |
Recommendation | Initial definition. |
Browser compatibility
| Feature | Chrome | Edge | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
|---|---|---|---|---|---|---|
| Basic support | 6.0 | (Yes) | 7.0 (7.0) | 9.0 | 15.0 | No support |
secureConnectionStart |
6.0 | (Yes) | 56 (56) | 9.0 | 15.0 | No support |
toJSON() |
45.0 | ? | 25.0 (25.0) | 9.0 | No support | No support |
| Feature | Android | Edge | Firefox Mobile (Gecko) | IE Phone | Opera Mobile | Safari Mobile |
|---|---|---|---|---|---|---|
| Basic support | No support | (Yes) | 7.0 (7.0) | 9.0 | 15.0 | No support |
secureConnectionStart |
No support | (Yes) | 56.0 (56) | 9.0 | 15.0 | No support |
toJSON() |
No support | ? | 25.0 (25.0) | No support | No support |
See also
- The
Performance.timingproperty that creates such an object.