resourcetimingbufferfull
event is fired when the browser's
resource timing buffer
is full.
| 冒泡 | Yes |
|---|---|
| 可取消 | Yes |
| 接口 |
事件
|
| 事件处理程序特性 |
onresourcetimingbufferfull
|
The following example sets a callback function on the
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()">
Note that you could also set up the handler using the addEventListener() function:
performance.addEventListener('resourcetimingbufferfull', buffer_full);
| 规范 | 状态 | 注释 |
|---|---|---|
|
Resource Timing Level 1
The definition of 'onresourcetimingbufferfull' in that specification. |
候选推荐 | 初始定义。 |
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
resourcetimingbufferfull
event
|
Chrome
46
|
Edge ≤79 | Firefox Yes | IE 不支持 No | Opera 不支持 No | Safari 11 |
WebView Android
46
|
Chrome Android
46
|
Firefox Android Yes | Opera Android Yes | Safari iOS 不支持 No |
Samsung Internet Android
5.0
|
完整支持
不支持
使用非标名称。
性能
resourcetimingbufferfull