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.
候选推荐 初始定义。

浏览器兼容性

更新 GitHub 上的兼容性数据
桌面 移动
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
resourcetimingbufferfull event Chrome 46
46
22 — 57 Alternate Name
Alternate Name Uses the non-standard name: webkitresourcetimingbufferfull
Edge ≤79 Firefox Yes IE 不支持 No Opera 不支持 No Safari 11 WebView Android 46
46
? — 57 Alternate Name
Alternate Name Uses the non-standard name: webkitresourcetimingbufferfull
Chrome Android 46
46
25 — 57 Alternate Name
Alternate Name Uses the non-standard name: webkitresourcetimingbufferfull
Firefox Android Yes Opera Android Yes Safari iOS 不支持 No Samsung Internet Android 5.0
5.0
1.5 — 7.0 Alternate Name
Alternate Name Uses the non-standard name: webkitresourcetimingbufferfull

图例

完整支持

完整支持

不支持

不支持

使用非标名称。

使用非标名称。

另请参阅

元数据

  • 最后修改:
  1. 性能
  2. 特性
    1. navigation
    2. onresourcetimingbufferfull
    3. timeOrigin
    4. timing
  3. 方法
    1. clearMarks()
    2. clearMeasures()
    3. clearResourceTimings()
    4. getEntries()
    5. getEntriesByName()
    6. getEntriesByType()
    7. mark()
    8. measure()
    9. now()
    10. setResourceTimingBufferSize()
    11. toJSON()
  4. 事件
    1. resourcetimingbufferfull

版权所有  © 2014-2026 乐数软件    

工业和信息化部: 粤ICP备14079481号-1