W3cubDocs

/Web APIs

Performance: resourcetimingbufferfull event

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

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet
resourcetimingbufferfull_event 4622–57 79 35 No No 11 464.4–57 4625–57 35 3314–43 11 5.01.5–7.0

See also

© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/Performance/resourcetimingbufferfull_event