requestStart
Summary
Returns the time immediately before the user agent starts requesting the current document from the server, or from relevant application caches or from local resources. If the transport connection fails after a request is sent and the user agent reopens a connection and resends the request, returns the corresponding values of the new request.
Property of apis/navigation timing/PerformanceTimingapis/navigation timing/PerformanceTiming
Syntax
Note: This property is read-only.
var result = PerformanceTiming.requestStart;
Return Value
Returns an object of type unsigned longunsigned long
Examples
var perftime = performance.timing;
document.write("requestStart: " + perftime.requestStart + "<br />");
Notes
The PerformanceTiming interface does not include an attribute to represent the completion of sending the request, e.g., requestEnd.
- Completion of sending the request from the user agent does not always indicate the corresponding completion time in the network transport, which brings most of the benefit of having such an attribute.
- Some user agents have high cost to determine the actual completion time of sending the request due to the HTTP layer encapsulation.
Related specifications
- Navigation Timing 2
- W3C Working Draft
Attributions
Microsoft Developer Network: Windows Internet Explorer API reference Article