aboutsummaryrefslogtreecommitdiff
path: root/files/ja/conflicting/web/api/performance/resourcetimingbufferfull_event/index.md
diff options
context:
space:
mode:
authorAtsuto Yamashita <atyamash@yahoo-corp.jp>2022-03-15 19:47:35 +0900
committerGitHub <noreply@github.com>2022-03-15 19:47:35 +0900
commit9bf38df91fadd199a5ea45ad79d5e111ddfb3fe0 (patch)
tree71952407ea41c86feabef4214610d59e15aae55d /files/ja/conflicting/web/api/performance/resourcetimingbufferfull_event/index.md
parentc2678137db5f97ad1fe39e872529159a1afafec1 (diff)
parent9e7fbb013772ebab9b35185f0d0836995acbe6db (diff)
downloadtranslated-content-9bf38df91fadd199a5ea45ad79d5e111ddfb3fe0.tar.gz
translated-content-9bf38df91fadd199a5ea45ad79d5e111ddfb3fe0.tar.bz2
translated-content-9bf38df91fadd199a5ea45ad79d5e111ddfb3fe0.zip
Merge branch 'main' into fix-typo-client-side-web-apis-intro-ja
Diffstat (limited to 'files/ja/conflicting/web/api/performance/resourcetimingbufferfull_event/index.md')
-rw-r--r--files/ja/conflicting/web/api/performance/resourcetimingbufferfull_event/index.md59
1 files changed, 59 insertions, 0 deletions
diff --git a/files/ja/conflicting/web/api/performance/resourcetimingbufferfull_event/index.md b/files/ja/conflicting/web/api/performance/resourcetimingbufferfull_event/index.md
new file mode 100644
index 0000000000..d025f57362
--- /dev/null
+++ b/files/ja/conflicting/web/api/performance/resourcetimingbufferfull_event/index.md
@@ -0,0 +1,59 @@
+---
+title: Performance.onresourcetimingbufferfull
+slug: conflicting/Web/API/Performance/resourcetimingbufferfull_event
+tags:
+ - API
+ - プロパティ
+ - リファレンス
+ - ウェブパフォーマンス
+translation_of: Web/API/Performance/onresourcetimingbufferfull
+original_slug: Web/API/Performance/onresourcetimingbufferfull
+browser-compat: api.Performance.onresourcetimingbufferfull
+---
+{{APIRef("Resource Timing API")}}
+
+**`onresourcetimingbufferfull`** プロパティは、 {{domxref("Performance/resourcetimingbufferfull_event", "resourcetimingbufferfull")}} イベントが発生したときに呼び出されるイベントハンドラーです。このイベントは、ブラウザーのリソースタイミングパフォーマンスバッファーがいっぱいになったときに発生します。
+
+{{AvailableInWorkers}}
+
+## 構文
+
+```js
+callback = performance.onresourcetimingbufferfull = buffer_full_cb;
+```
+
+### 返値
+
+- callback
+ - : [イベントハンドラー](/ja/docs/Web/Events/Event_handlers)で、 {{domxref("Performance/resourcetimingbufferfull_event", "resourcetimingbufferfull")}} イベントが発生したときに呼び出されるものです。
+</dl>
+
+## 例
+
+次の例では、 `onresourcetimingbufferfull` プロパティにコールバック関数を設定します。
+
+```js
+function buffer_full(event) {
+ console.log("WARNING: Resource Timing Buffer is FULL!");
+ performance.setResourceTimingBufferSize(200);
+}
+function init() {
+ // リソースバッファーが一杯になったときのコールバックを設定
+ performance.onresourcetimingbufferfull = buffer_full;
+}
+<body onload="init()">
+```
+
+## 仕様書
+
+{{Specifications}}
+
+## ブラウザーの互換性
+
+{{Compat}}
+
+## 関連情報
+
+- {{domxref("Performance/resourcetimingbufferfull_event", "resourcetimingbufferfull")}} イベント
+- {{domxref("Performance.clearResourceTimings","Performance.clearResourceTimings()")}}
+- {{domxref("Performance.setResourceTimingBufferSize","Performance.setResourceTimingBufferSize()")}}