diff options
author | Atsuto Yamashita <atyamash@yahoo-corp.jp> | 2022-03-15 19:47:35 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-15 19:47:35 +0900 |
commit | 9bf38df91fadd199a5ea45ad79d5e111ddfb3fe0 (patch) | |
tree | 71952407ea41c86feabef4214610d59e15aae55d /files/ja/conflicting/web/api/performance/resourcetimingbufferfull_event/index.md | |
parent | c2678137db5f97ad1fe39e872529159a1afafec1 (diff) | |
parent | 9e7fbb013772ebab9b35185f0d0836995acbe6db (diff) | |
download | translated-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.md | 59 |
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()")}} |