This interface of this property is deprecated in the Navigation Timing Level 2 specification . Please use the PerformanceNavigationTiming interface instead.

传统 PerformanceTiming .domInteractive read-only property returns an unsigned long long representing the moment, in milliseconds since the UNIX epoch, when the parser finished its work on the main document, that is when its Document.readyState changes to 'interactive' 和相应 readystatechange event is thrown.

This property can be used to measure the speed of loading Web sites that users feels . Nevertheless there are a few caveats that happens if scripts are blocking rendering and not loaded asynchronously or with custom Web fonts. Check if you are in one of these cases before using this property as a proxy for the user experience of a Web site's speed of loading.

句法

time = performanceTiming.domInteractive;
					

规范

规范 状态 注释
导航计时
The definition of 'PerformanceTiming.domInteractive' in that specification.
推荐 初始定义。

浏览器兼容性

The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request. 更新 GitHub 上的兼容性数据
桌面 移动
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
domInteractive 弃用 Chrome 6 Edge 12 Firefox 7 IE 9 Opera 15 Safari 11 WebView Android Yes Chrome Android 18 Firefox Android 7 Opera Android 14 Safari iOS 11 Samsung Internet Android 1.0

图例

完整支持

完整支持

弃用。不要用于新网站。

弃用。不要用于新网站。

另请参阅

元数据

  • 最后修改: