aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/api/performancenavigationtiming/loadeventend/index.html
blob: ca75c81932748de27297bc73de9b4046ae6a5e2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
---
title: PerformanceNavigationTiming.loadEventEnd
slug: Web/API/PerformanceNavigationTiming/loadEventEnd
tags:
  - API
  - Web パフォーマンス
  - プロパティ
  - リファレンス
translation_of: Web/API/PerformanceNavigationTiming/loadEventEnd
---
<div>{{APIRef("Navigation Timing")}}{{SeeCompatTable}}</div>

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

<h2 id="構文">構文</h2>

<pre class="syntaxbox"><em>perfEntry</em>.loadEventEnd;
</pre>

<h3 id="戻り値">戻り値</h3>

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

<h2 id="例"></h2>

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

<pre class="brush: js">function print_nav_timing_data() {
  // Use getEntriesByType() to just get the "navigation" events
  var perfEntries = performance.getEntriesByType("navigation");

  for (var i=0; i &lt; 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);
  }
}
</pre>

<h2 id="仕様">仕様</h2>

<table class="standard-table">
 <tbody>
  <tr>
   <th scope="col">仕様書</th>
   <th scope="col">ステータス</th>
   <th scope="col">コメント</th>
  </tr>
  <tr>
   <td>{{SpecName('Navigation Timing Level 2', '#widl-PerformanceNavigationTiming-loadEventEnd', 'loadEventEnd')}}</td>
   <td>{{Spec2('Navigation Timing Level 2')}}</td>
   <td>初期定義</td>
  </tr>
 </tbody>
</table>

<h2 id="ブラウザの互換性">ブラウザの互換性</h2>

<div>
<p>{{Compat("api.PerformanceNavigationTiming.loadEventEnd")}}</p>
</div>