共用方式為


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

connectEnd

Gets the time that the user agent finishes establishing the connection to the server to retrieve the current document.

connectStart

Gets the time immediately before the user agent starts establishing the connection to the server to retrieve the document.

domainLookupEnd

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.

domainLookupStart

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.

domComplete

The IHTMLPerformanceTiming::domComplete property must return the time immediately before the user agent sets the current document readiness to complete.

domContentLoadedEventEnd

Gets the time when the DOM content finished loading into the document that is loaded by the window object.

domContentLoadedEventStart

The IHTMLPerformanceTiming::domContentLoadedEventStart property must return the time immediately before the user agent fires the DOMContentLoaded event of the document.

domInteractive

The IHTMLPerformanceTiming::domInteractive property must return the time immediately before the user agent sets the current document readiness to interactive.

domLoading

The IHTMLPerformanceTiming::domLoading property must return the time immediately before the user agent sets the current document readiness to loading.

fetchStart

Gets the time when the user agent starts fetching the resource.

loadEventEnd

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.

loadEventStart

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.

msFirstPaint

Gets the time when the document loaded by the window object began to be displayed to the user.

navigationStart

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.

redirectEnd

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.

redirectStart

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.

requestStart

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.

responseEnd

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.

responseStart

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.

unloadEventEnd

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.

unloadEventStart

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:

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

See also

IDispatch