The resourcetimingbufferfull event is fired when the browser's resource timing buffer is full.
Performance| Property | Type | Description |
|---|---|---|
target Read only
| EventTarget | The event target (the topmost target in the DOM tree). |
type Read only
| DOMString | The type of event. |
bubbles Read only
| Boolean | Whether the event normally bubbles or not |
cancelable Read only
| Boolean | Whether the event is cancellable or not? |
view Read only
| WindowProxy |
document.defaultView (window of the document) |
detail Read only
|
long (float
| 0 |
function buffer_full(event) {
if (performance === undefined) {
console.log("Performance interface NOT supported.");
return;
}
// Remove all of the resource timing entries
performance.clearResourceTimings();
// Set the new size at 200 resource timing entries (PerformanceEntry objects)
performance.setResourceTimingBufferSize(200);
}
<body onresourcetimingbufferfull="buffer_full(event)">
| Specification | Status | Comment |
|---|---|---|
| Resource Timing Level 1 The definition of 'onresourcetimingbufferfull' in that specification. | Candidate Recommendation | Initial definition. |
We're converting our compatibility data into a machine-readable JSON format. This compatibility table still uses the old format, because we haven't yet converted the data it contains. Find out how you can help!
| Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
|---|---|---|---|---|---|
| Basic support. | No support | No support | ? | No support | No support |
| Feature | Android | Firefox Mobile (Gecko) | Firefox OS | IE Phone | Opera Mobile | Safari Mobile |
|---|---|---|---|---|---|---|
| Basic support. | No support | No support | No support | ? | No support | No support |
Performance.onresourcetimingbufferfullPerformance.clearResourceTimings()Performance.setResourceTimingBufferSize()
© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/Events/resourcetimingbufferfull