aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/api/performanceresourcetiming/connectstart
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
commit33058f2b292b3a581333bdfb21b8f671898c5060 (patch)
tree51c3e392513ec574331b2d3f85c394445ea803c6 /files/ja/web/api/performanceresourcetiming/connectstart
parent8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff)
downloadtranslated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip
initial commit
Diffstat (limited to 'files/ja/web/api/performanceresourcetiming/connectstart')
-rw-r--r--files/ja/web/api/performanceresourcetiming/connectstart/index.html81
1 files changed, 81 insertions, 0 deletions
diff --git a/files/ja/web/api/performanceresourcetiming/connectstart/index.html b/files/ja/web/api/performanceresourcetiming/connectstart/index.html
new file mode 100644
index 0000000000..b54f982218
--- /dev/null
+++ b/files/ja/web/api/performanceresourcetiming/connectstart/index.html
@@ -0,0 +1,81 @@
+---
+title: PerformanceResourceTiming.connectStart
+slug: Web/API/PerformanceResourceTiming/connectStart
+tags:
+ - API
+ - Web パフォーマンス
+ - プロパティ
+ - リファレンス
+translation_of: Web/API/PerformanceResourceTiming/connectStart
+---
+<div>{{APIRef("Resource Timing API")}}</div>
+
+<p><strong><code>connectStart</code></strong> 読み取り専用プロパティは、リソースを取得するためにユーザエージェントがサーバへの接続の確立を開始する直前に {{domxref("DOMHighResTimeStamp","timestamp")}} を返します。</p>
+
+<p>{{AvailableInWorkers}}</p>
+
+<h2 id="Syntax" name="Syntax">構文</h2>
+
+<pre class="syntaxbox"><em>resource</em>.connectStart;
+</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 PerformanceEntry *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-connectStart', 'connectStart')}}</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.connectStart")}}</p>