onresourcetimingbufferfull
Summary
This callback is triggered when the buffer used to store the list of PerformanceResourceTiming is full.
Property of apis/resource_timing/Performanceapis/resource_timing/Performance
Syntax
Note: This property is read-only.
var result = element.onresourcetimingbufferfull;
Examples
This example uses clearResourceTimings and setResourceTimingBufferSize to set an initial buffer size. It then uses onresourcetimingbufferfull to detect when the buffer is full, and executes a function that uses clearResourceTimings to clear the buffer.
performance.clearResourceTimings();
setResourceTimingBufferSize(100);
function buffFull() {
performance.clearResourceTimings();
};
performance.onresourcetimingbufferfull = buffFull;
Related specifications
- W3C Resource Timing Specification
- W3C Working Draft
Attributions
Microsoft Developer Network: Windows Internet Explorer API reference Article