From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- .../resourcetimingbufferfull_event/index.html | 84 ++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 files/ja/web/api/performance/resourcetimingbufferfull_event/index.html (limited to 'files/ja/web/api/performance/resourcetimingbufferfull_event/index.html') 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 +--- +
{{APIRef}}
+ +

resourcetimingbufferfull イベントは、ブラウザのリソースタイミングバッファがいっぱいになると発生します。

+ + + + + + + + + + + + + + + + + + + + +
バブルはい
キャンセル可能はい
インターフェイス{{domxref("Event")}}
イベントハンドラプロパティ{{domxref("Performance.onresourcetimingbufferfull", "onresourcetimingbufferfull")}}
+ +

+ +

次の例では、onresourcetimingbufferfull プロパティにコールバック関数を設定します。

+ +
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()">
+ +

addEventListener() 関数を使用してハンドラを設定することもできます。

+ +
performance.addEventListener('resourcetimingbufferfull', buffer_full);
+
+ +

仕様

+ + + + + + + + + + + + + + +
仕様書ステータスコメント
{{SpecName('Resource Timing', '#dom-performance-onresourcetimingbufferfull', 'onresourcetimingbufferfull')}}{{Spec2('Resource Timing')}}初期定義
+ +

ブラウザの互換性

+ +
{{Compat("api.Performance.resourcetimingbufferfull_event")}}
+ +

あわせて参照

+ + -- cgit v1.2.3-54-g00ecf