MDN self-hosted library · e01.org

Performance: resourcetimingbufferfull event

Performance API

Performance API

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

Syntax

Use the event name in addEventListener():

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

Alternatively, assign to the event handler property of the interface:

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.

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

See also

  • Performance.clearResourceTimings()
  • Performance.setResourceTimingBufferSize()