PerformanceNavigationTiming.loadEventEnd
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2021年10月.
Experimental: これは実験的な機能です。
本番で使用する前にブラウザー互換性一覧表をチェックしてください。
loadEventEnd 読み取り専用プロパティは、現在のドキュメントのロードイベントが完了した時刻と同じtimestamp を返します。
構文
perfEntry.loadEventEnd;
返値
現在のドキュメントのロードイベントが完了した時刻を表す timestamp。
例
次の例は、このプロパティの使用方法を示しています。
js
function print_nav_timing_data() { // Use getEntriesByType() to just get the "navigation" events var perfEntries = performance.getEntriesByType("navigation"); for (var i = 0; i < perfEntries.length; i++) { console.log("= Navigation entry[" + i + "]"); var p = perfEntries[i]; // dom Properties console.log( "DOM content loaded = " + (p.domContentLoadedEventEnd - p.domContentLoadedEventStart), ); console.log("DOM complete = " + p.domComplete); console.log("DOM interactive = " + p.interactive); // document load and unload time console.log("document load = " + (p.loadEventEnd - p.loadEventStart)); console.log("document unload = " + (p.unloadEventEnd - p.unloadEventStart)); // other properties console.log("type = " + p.type); console.log("redirectCount = " + p.redirectCount); } } 仕様書
| Specification |
|---|
| Navigation Timing Level 2> # dom-performancenavigationtiming-loadeventend> |