Performance: resourcetimingbufferfull イベント
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since September 2015.
resourcetimingbufferfull
イベントは、ブラウザーのリソースタイミングバッファーがいっぱいになると発生します。
構文
このイベント名を addEventListener()
等のメソッドで使用するか、イベントハンドラープロパティを設定するかしてください。
js
addEventListener("resourcetimingbufferfull", (event) => {});
onresourcetimingbufferfull = (event) => {};
イベント型
一般的な Event
です。
例
バッファーが満杯になったときにサイズを拡大
次の例は、 resourcetimingbufferfull
イベントを待ち受け、 setResourceTimingBufferSize()
メソッドを使用してバッファーサイズを増やします。
js
function increaseFilledBufferSize(event) {
console.log(
"警告: リソースタイミングバッファーが満杯です。バッファーサイズを 500 に増やします。",
);
performance.setResourceTimingBufferSize(500);
}
performance.addEventListener(
"resourcetimingbufferfull",
increaseFilledBufferSize,
);
仕様書
Specification |
---|
Resource Timing # dom-performance-onresourcetimingbufferfull |
ブラウザーの互換性
Report problems with this compatibility data on GitHubdesktop | mobile | server | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
resourcetimingbufferfull event |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
- Requires a vendor prefix or different name for use.
- Has more compatibility info.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.