IHTMLPerformanceTiming interface
Provides properties for accessing the timestamps that are associated with built-in performance marks.
Members
The IHTMLPerformanceTiming interface inherits from the IDispatch interface. IHTMLPerformanceTiming also has these types of members:
- Methods
- Properties
Methods
The IHTMLPerformanceTiming interface has these methods.
Method | Description |
---|---|
toJSON | Returns the calling object as a JSON object. |
Properties
The IHTMLPerformanceTiming interface has these properties.
Property | 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 IHTMLPerformanceTiming::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 IHTMLPerformanceTiming::fetchStart. |
|
The IHTMLPerformanceTiming::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 IHTMLPerformanceTiming::fetchStart. |
|
The IHTMLPerformanceTiming::domComplete property must return the time immediately before the user agent sets the current document readiness to complete. |
|
Gets the time when the DOM content finished loading into the document that is loaded by the window object. |
|
The IHTMLPerformanceTiming::domContentLoadedEventStart property must return the time immediately before the user agent fires the DOMContentLoaded event of the document. |
|
The IHTMLPerformanceTiming::domInteractive property must return the time immediately before the user agent sets the current document readiness to interactive. |
|
The IHTMLPerformanceTiming::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 IHTMLPerformanceTiming::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 IHTMLPerformanceTiming::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 IHTMLPerformanceTiming::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 IHTMLPerformanceTiming::fetchStart. |
|
If there are HTTP redirects or equivalent when navigating and all redirects and equivalents are from the same origin, the IHTMLPerformanceTiming::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 IHTMLPerformanceTiming::redirectStart property must return the starting time of the fetch that initiates the redirect. Otherwise, this attribute must return zero. |
|
The IHTMLPerformanceTiming::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 IHTMLPerformanceTiming::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 IHTMLPerformanceTiming::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 IHTMLPerformanceTiming::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 IHTMLPerformanceTiming::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. |
Remarks
When a webpage is displayed in Defining Document Compatibility, Windows Internet Explorer records timestamps that correspond to the time when various steps occured during the process used to load a document. Each property of the IHTMLPerformanceTiming interface corresponds to one of these timestamps.
The timestamps are recorded in the following order:
- IHTMLPerformanceTiming::navigationStart
- IHTMLPerformanceTiming::fetchStart
- IHTMLPerformanceTiming::unloadEventStart
- IHTMLPerformanceTiming::unloadEventEnd
- IHTMLPerformanceTiming::domainLookupStart
- IHTMLPerformanceTiming::domainLookupEnd
- IHTMLPerformanceTiming::connectStart
- IHTMLPerformanceTiming::connectEnd
- IHTMLPerformanceTiming::requestStart
- IHTMLPerformanceTiming::redirectStart
- IHTMLPerformanceTiming::redirectEnd
- IHTMLPerformanceTiming::responseStart
- IHTMLPerformanceTiming::responseEnd
- IHTMLPerformanceTiming::domLoading
- IHTMLPerformanceTiming::domInteractive
- IHTMLPerformanceTiming::domContentLoadedEventStart
- IHTMLPerformanceTiming::domContentLoadedEventEnd
- IHTMLPerformanceTiming::domComplete
- IHTMLPerformanceTiming::loadEventStart
- IHTMLPerformanceTiming::loadEventEnd
- IHTMLPerformanceTiming::msFirstPaint
The values reported by the properties of the IHTMLPerformanceTiming interface represent the number of milliseconds between the recorded time and midnight January 1, 1970 (UTC).
Requirements
Minimum supported client |
Windows Vista with SP1, Windows 7 |
Minimum supported server |
Windows Server 2008 R2 |
Header |
Mshtml.h |
IDL |
Mshtml.idl |
DLL |
Mshtml.dll |