domLoading
Summary
Returns the time immediately before the user agent sets the current document readiness to "loading".
Property of apis/navigation_timing/PerformanceTimingapis/navigation_timing/PerformanceTiming
Syntax
Note: This property is read-only.
var result = PerformanceTiming.domLoading;
Return Value
Returns an object of type unsigned longunsigned long
Examples
var perftime = performance.timing;
document.write("domLoading: " + perftime.domLoading + "<br />");
Notes
The value of the domLoading property is controlled by the document object associated with the window object. The value of the domLoading property is updated when the readyState property is set to loading
. If the document cannot be loaded, the value of the domLoading property is available after the onload event has finished executing. The value reported represents the number of milliseconds between the recorded time and midnight January 1, 1970 (UTC).
Related specifications
- W3C Navigation Timing Specification 2
- W3C Working Draft
Attributions
Microsoft Developer Network: Windows Internet Explorer API reference Article