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)">