Gets the time that the user agent finishes establishing the connection to the server to retrieve the current document.
Represents the time that the user agent finishes establishing the connection to the server to retrieve the current document.
- Navigation Timing, Section 4.2
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).
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;