resourcetimingbufferfull
イベントは、ブラウザのリソースタイミングバッファがいっぱいになると発生します。
バブル | はい |
---|---|
キャンセル可能 | はい |
インターフェイス | Event |
イベントハンドラプロパティ | 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);
仕様
仕様書 | ステータス | コメント |
---|---|---|
Resource Timing Level 1 onresourcetimingbufferfull の定義 |
勧告候補 | 初期定義 |
ブラウザの互換性
BCD tables only load in the browser