aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/api/performance/onresourcetimingbufferfull
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/performance/onresourcetimingbufferfull
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/performance/onresourcetimingbufferfull')
-rw-r--r--files/ja/web/api/performance/onresourcetimingbufferfull/index.html75
1 files changed, 75 insertions, 0 deletions
diff --git a/files/ja/web/api/performance/onresourcetimingbufferfull/index.html b/files/ja/web/api/performance/onresourcetimingbufferfull/index.html
new file mode 100644
index 0000000000..d5845ecfa7
--- /dev/null
+++ b/files/ja/web/api/performance/onresourcetimingbufferfull/index.html
@@ -0,0 +1,75 @@
+---
+title: Performance.onresourcetimingbufferfull
+slug: Web/API/Performance/onresourcetimingbufferfull
+tags:
+ - API
+ - Web パフォーマンス
+ - プロパティ
+ - リファレンス
+translation_of: Web/API/Performance/onresourcetimingbufferfull
+---
+<div>{{APIRef("Resource Timing API")}}</div>
+
+<p><strong><code>onresourcetimingbufferfull</code></strong> プロパティは、{{event("resourcetimingbufferfull")}} イベントが発生したときに呼び出されるイベントハンドラです。このイベントは、ブラウザのリソースタイミングパフォーマンスバッファがいっぱいになったときに発生します。</p>
+
+<p>{{AvailableInWorkers}}</p>
+
+<h2 id="Syntax" name="Syntax">構文</h2>
+
+<pre class="syntaxbox">callback = <em>performance</em>.onresourcetimingbufferfull = buffer_full_cb;
+</pre>
+
+<h3 id="Return_Value" name="Return_Value">戻り値</h3>
+
+<dl>
+ <dt>callback</dt>
+ <dd>{{event("resourcetimingbufferfull")}} イベントが発生したときに呼び出される {{domxref("EventHandler")}}。</dd>
+</dl>
+
+<h2 id="例">例</h2>
+
+<p>次の例では、<code>onresourcetimingbufferfull</code> プロパティにコールバック関数を設定します。</p>
+
+<pre class="brush: js">function buffer_full(event) {
+ console.log("WARNING: Resource Timing Buffer is FULL!");
+ performance.setResourceTimingBufferSize(200);
+}
+function init() {
+ // Set a callback if the resource buffer becomes filled
+ performance.onresourcetimingbufferfull = buffer_full;
+}
+&lt;body onload="init()"&gt;
+</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', '#dom-performance-onresourcetimingbufferfull', 'onresourcetimingbufferfull')}}</td>
+ <td>{{Spec2('Resource Timing')}}</td>
+ <td>初期定義</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="ブラウザの互換性">ブラウザの互換性</h2>
+
+<div>
+<div class="hidden">このページの互換性テーブルは構造化データから生成されます。データに貢献したい場合は <a href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> をチェックして、プルリクエストを送ってください。</div>
+
+<p>{{Compat("api.Performance.onresourcetimingbufferfull")}}</p>
+</div>
+
+<h2 id="あわせて参照">あわせて参照</h2>
+
+<ul>
+ <li>{{event("resourcetimingbufferfull")}} event</li>
+ <li>{{domxref("Performance.clearResourceTimings","Performance.clearResourceTimings()")}}</li>
+ <li>{{domxref("Performance.setResourceTimingBufferSize","Performance.setResourceTimingBufferSize()")}}</li>
+</ul>