Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. Web APIs
  3. Performance
  4. resourcetimingbufferfull

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 ⁨January 2020⁩.

Note: This feature is available inWeb Workers.

Theresourcetimingbufferfull event is fired when the browser'sresource timing buffer is full.

Syntax

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

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

Event type

A genericEvent.

Examples

Increasing size when buffer is full

The following example listens for theresourcetimingbufferfull event and increases the buffer size using thesetResourceTimingBufferSize() 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

See also

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp