aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/api/performanceresourcetiming/domainlookupend
diff options
context:
space:
mode:
Diffstat (limited to 'files/ja/web/api/performanceresourcetiming/domainlookupend')
-rw-r--r--files/ja/web/api/performanceresourcetiming/domainlookupend/index.html83
1 files changed, 83 insertions, 0 deletions
diff --git a/files/ja/web/api/performanceresourcetiming/domainlookupend/index.html b/files/ja/web/api/performanceresourcetiming/domainlookupend/index.html
new file mode 100644
index 0000000000..e778423590
--- /dev/null
+++ b/files/ja/web/api/performanceresourcetiming/domainlookupend/index.html
@@ -0,0 +1,83 @@
+---
+title: PerformanceResourceTiming.domainLookupEnd
+slug: Web/API/PerformanceResourceTiming/domainLookupEnd
+tags:
+ - API
+ - Web パフォーマンス
+ - プロパティ
+ - リファレンス
+translation_of: Web/API/PerformanceResourceTiming/domainLookupEnd
+---
+<div>{{APIRef("Resource Timing API")}}</div>
+
+<p><strong><code>domainLookupEnd</code></strong> 読み取り専用プロパティは、ブラウザがリソースのドメイン名検索を終了した直後に {{domxref("DOMHighResTimeStamp","timestamp")}} を返します。</p>
+
+<p>ユーザエージェントのキャッシュにドメイン情報がある場合、{{domxref("PerformanceResourceTiming.domainLookupStart","domainLookupStart")}} と {{domxref("PerformanceResourceTiming.domainLookupEnd","domainLookupEnd")}} は<span class="tlid-translation translation" lang="ja"><span title="">ユーザエージェントがキャッシュからのドメインデータの取得を開始および終了した時刻を表します。</span></span></p>
+
+<p>{{AvailableInWorkers}}</p>
+
+<h2 id="Syntax" name="Syntax">構文</h2>
+
+<pre class="syntaxbox"><em>resource</em>.domainLookupEnd;
+</pre>
+
+<h3 id="Return_Value" name="Return_Value">戻り値</h3>
+
+<p>ブラウザがリソースのドメイン名検索を終了した直後の時間を表す {{domxref("DOMHighResTimeStamp")}}。</p>
+
+<h2 id="例">例</h2>
+
+<p>次の例では、すべての "<code>resource</code>" {{domxref("PerformanceEntry.entryType","type")}} イベントの <code>*Start</code> プロパティと <code>*End</code> プロパティの値が記録されます。</p>
+
+<pre class="brush: js">function print_PerformanceEntries() {
+ // Use getEntriesByType() to just get the "resource" events
+ var p = performance.getEntriesByType("resource");
+ for (var i=0; i &lt; p.length; i++) {
+ print_start_and_end_properties(p[i]);
+ }
+}
+function print_start_and_end_properties(perfEntry) {
+ // Print timestamps of the *start and *end properties
+ properties = ["connectStart", "connectEnd",
+ "domainLookupStart", "domainLookupEnd",
+ "fetchStart",
+ "redirectStart", "redirectEnd",
+ "requestStart",
+ "responseStart", "responseEnd",
+ "secureConnectionStart"];
+
+ for (var i=0; i &lt; properties.length; i++) {
+ // check each property
+ var supported = properties[i] in perfEntry;
+ if (supported) {
+ var value = perfEntry[properties[i]];
+ console.log("... " + properties[i] + " = " + value);
+ } else {
+ console.log("... " + properties[i] + " = NOT supported");
+ }
+ }
+}
+</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('Resource Timing', '#widl-PerformanceResourceTiming-domainLookupEnd', 'domainLookupEnd')}}</td>
+ <td>{{Spec2('Resource Timing')}}</td>
+ <td>初期定義</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="ブラウザの互換性">ブラウザの互換性</h2>
+
+<div class="hidden">このページの互換性テーブルは構造化データから生成されます。データに貢献したい場合は <a href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> をチェックして、プルリクエストを送ってください。</div>
+
+<p>{{Compat("api.PerformanceResourceTiming.domainLookupEnd")}}</p>