connectEnd property

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

Internet Explorer 9

 

Syntax

JavaScript

time = object.connectEnd

 

Property values

Type: Integer

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

Standards information

Remarks

If a page is retrieved from an application cache, connectEnd has the same value as fetchStart.

The value reported by connectEnd represents the number of milliseconds between the recorded time and midnight January 1, 1970 (UTC).

Windows Internet Explorer 9. This property is supported only for documents displayed in IE9 Standards mode. For more information, see Defining Document Compatibility.

Examples

The following example shows how to calculate the amount of time required to establish a connection for a document.


var oTiming = window.Performance.timing;
var iTimeMS = oTiming.connectEnd - oTiming.connectStart;

See also

performanceTiming
connectStart

 

 

Show:
© 2014 Microsoft