diff options
| author | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
|---|---|---|
| committer | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
| commit | 33058f2b292b3a581333bdfb21b8f671898c5060 (patch) | |
| tree | 51c3e392513ec574331b2d3f85c394445ea803c6 /files/ja/web/api/performance/resourcetimingbufferfull_event/index.html | |
| parent | 8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff) | |
| download | translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2 translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip | |
initial commit
Diffstat (limited to 'files/ja/web/api/performance/resourcetimingbufferfull_event/index.html')
| -rw-r--r-- | files/ja/web/api/performance/resourcetimingbufferfull_event/index.html | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/files/ja/web/api/performance/resourcetimingbufferfull_event/index.html b/files/ja/web/api/performance/resourcetimingbufferfull_event/index.html new file mode 100644 index 0000000000..bfabd2adae --- /dev/null +++ b/files/ja/web/api/performance/resourcetimingbufferfull_event/index.html @@ -0,0 +1,84 @@ +--- +title: 'Performance: resourcetimingbufferfull event' +slug: Web/API/Performance/resourcetimingbufferfull_event +tags: + - API + - DOM + - Web 開発 + - onresourcetimingbufferfull + - イベント + - パフォーマンス + - リファレンス +translation_of: Web/API/Performance/resourcetimingbufferfull_event +--- +<div>{{APIRef}}</div> + +<p><code>resourcetimingbufferfull</code> イベントは、ブラウザのリソースタイミングバッファがいっぱいになると発生します。</p> + +<table class="properties"> + <tbody> + <tr> + <th scope="row">バブル</th> + <td>はい</td> + </tr> + <tr> + <th scope="row">キャンセル可能</th> + <td>はい</td> + </tr> + <tr> + <th scope="row">インターフェイス</th> + <td>{{domxref("Event")}}</td> + </tr> + <tr> + <th scope="row">イベントハンドラプロパティ</th> + <td>{{domxref("Performance.onresourcetimingbufferfull", "onresourcetimingbufferfull")}}</td> + </tr> + </tbody> +</table> + +<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; +} +<body onload="init()"></pre> + +<p>addEventListener() 関数を使用してハンドラを設定することもできます。</p> + +<pre class="brush: js">performance.addEventListener('resourcetimingbufferfull', buffer_full); +</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>{{Compat("api.Performance.resourcetimingbufferfull_event")}}</div> + +<h2 id="あわせて参照">あわせて参照</h2> + +<ul> + <li>{{domxref("Performance.clearResourceTimings","Performance.clearResourceTimings()")}}</li> + <li>{{domxref("Performance.setResourceTimingBufferSize","Performance.setResourceTimingBufferSize()")}}</li> +</ul> |
