Performance: resourcetimingbufferfull event

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since September 2015.

Note: This feature is available in Web Workers.

The resourcetimingbufferfull event is fired when the browser's resource timing buffer is full.

Syntax

Use the event name in methods like addEventListener(), or set an event handler property.

js
addEventListener("resourcetimingbufferfull", (event) => {});

onresourcetimingbufferfull = (event) => {};

Event type

A generic Event.

Examples

Increasing size when buffer is full

The following example listens for the resourcetimingbufferfull event and increases the buffer size using the setResourceTimingBufferSize() method.

js
function increaseFilledBufferSize(event) {
  console.log(
    "WARNING: Resource Timing Buffer is FULL! Increasing buffer size to 500.",
  );
  performance.setResourceTimingBufferSize(500);
}

performance.addEventListener(
  "resourcetimingbufferfull",
  increaseFilledBufferSize,
);

Specifications

Specification
Resource Timing
# dom-performance-onresourcetimingbufferfull

Browser compatibility

Report problems with this compatibility data on GitHub
desktopmobileserver
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
Deno
Node.js
resourcetimingbufferfull event

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
No support
No support
Requires a vendor prefix or different name for use.
Has more compatibility info.

See also