msFirstPaint property

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

Syntax

JavaScript

p = object.msFirstPaint

Property values

Type: Integer

An Integer value that represents the time when the document began to be displayed or 0 if the document could not be loaded.

Remarks

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

This property is supported only for documents displayed in a Windows Store app using JavaScript. For more information, please see Defining Document Compatibility.

Examples

The following example shows how to calculate the time that is required to request the document before the document begins to display for the user.


var oTiming = window.performance.timing;
var iTimeMS = oTiming.msFirstPaint - oTiming.navigationStart;

See also

performanceTiming
navigationStart

 

 

Show:
© 2014 Microsoft