--- title: PerformanceNavigationTiming.loadEventEnd slug: Web/API/PerformanceNavigationTiming/loadEventEnd tags: - API - Web パフォーマンス - プロパティ - リファレンス translation_of: Web/API/PerformanceNavigationTiming/loadEventEnd ---
{{APIRef("Navigation Timing")}}{{SeeCompatTable}}

loadEventEnd 読み取り専用プロパティは、現在のドキュメントのロードイベントが完了した時刻と同じ{{domxref("DOMHighResTimeStamp","timestamp")}} を返します。

構文

perfEntry.loadEventEnd;

戻り値

現在のドキュメントのロードイベントが完了した時刻を表す {{domxref("DOMHighResTimeStamp","timestamp")}}。

次の例は、このプロパティの使用方法を示しています。

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);
  }
}

仕様

仕様書 ステータス コメント
{{SpecName('Navigation Timing Level 2', '#widl-PerformanceNavigationTiming-loadEventEnd', 'loadEventEnd')}} {{Spec2('Navigation Timing Level 2')}} 初期定義

ブラウザの互換性

{{Compat("api.PerformanceNavigationTiming.loadEventEnd")}}