Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adapt api.Performance.onresourcetimingbufferfull to new events structure #13603

Merged
merged 2 commits into from
Mar 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions files/en-us/_redirects.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8709,6 +8709,7 @@
/en-US/docs/Web/API/Performance.now /en-US/docs/Web/API/Performance/now
/en-US/docs/Web/API/Performance.now() /en-US/docs/Web/API/Performance/now
/en-US/docs/Web/API/Performance.timing /en-US/docs/Web/API/Performance/timing
/en-US/docs/Web/API/Performance/onresourcetimingbufferfull /en-US/docs/Web/API/Performance/resourcetimingbufferfull_event
/en-US/docs/Web/API/PerformanceEntry/connectEnd /en-US/docs/Web/API/PerformanceResourceTiming/connectEnd
/en-US/docs/Web/API/PerformanceEntry/connectStart /en-US/docs/Web/API/PerformanceResourceTiming/connectStart
/en-US/docs/Web/API/PerformanceEntry/decodedBodySize /en-US/docs/Web/API/PerformanceResourceTiming/decodedBodySize
Expand Down
10 changes: 0 additions & 10 deletions files/en-us/_wikihistory.json
Original file line number Diff line number Diff line change
Expand Up @@ -65818,16 +65818,6 @@
"kscarfone"
]
},
"Web/API/Performance/onresourcetimingbufferfull": {
"modified": "2020-10-15T21:41:14.201Z",
"contributors": [
"chrisdavidmills",
"fscholz",
"jpmedley",
"rolfedh",
"AFBarstow"
]
},
"Web/API/Performance/resourcetimingbufferfull_event": {
"modified": "2020-10-15T21:41:10.224Z",
"contributors": [
Expand Down
1 change: 0 additions & 1 deletion files/en-us/web/api/performance/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ Listen to these events using `addEventListener()` or by assigning an event liste

- {{DOMxRef("Performance.resourcetimingbufferfull_event", "resourcetimingbufferfull")}}
- : Fired when the browser's [resource timing buffer](/en-US/docs/Web/API/Performance/setResourceTimingBufferSize) is full.
Also available via the {{DOMxRef("Performance.onresourcetimingbufferfull", "onresourcetimingbufferfull")}} property.

## Specifications

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -15,28 +15,19 @@ browser-compat: api.Performance.resourcetimingbufferfull_event

The `resourcetimingbufferfull` event is fired when the browser's [resource timing buffer](/en-US/docs/Web/API/Performance/setResourceTimingBufferSize) is full.

<table class="properties">
<tbody>
<tr>
<th scope="row">Bubbles</th>
<td>Yes</td>
</tr>
<tr>
<th scope="row">Cancelable</th>
<td>Yes</td>
</tr>
<tr>
<th scope="row">Interface</th>
<td>{{domxref("Event")}}</td>
</tr>
<tr>
<th scope="row">Event handler property</th>
<td>
{{domxref("Performance.onresourcetimingbufferfull", "onresourcetimingbufferfull")}}
</td>
</tr>
</tbody>
</table>
## Syntax

Use the event name in methods like {{domxref("EventTarget.addEventListener", "addEventListener()")}}, or set an event handler property.

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

onresourcetimingbufferfull = event => { };
```

## Event type

A generic {{domxref("Event")}}.

## Examples

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ function set_resource_timing_buffer_size(n) {
}
```

The {{domxref("Performance")}} interface has a {{domxref("Performance.onresourcetimingbufferfull","onresourcetimingbufferfull")}} event handler that gets called (with an {{domxref("Event")}} of type {{domxref("Event.type")}} of "{{event("resourcetimingbufferfull")}}") when the browser's resource performance entry buffer is full. The following code example sets a {{domxref("Performance.onresourcetimingbufferfull","onresourcetimingbufferfull")}} event callback in the `init()` function.
The {{domxref("Performance.resourcetimingbufferfull_event","resourcetimingbufferfull")}} event is fired at the {{domxref("Performance")}} object when the browser's resource performance entry buffer is full. The following code example sets a {{domxref("Performance.resourcetimingbufferfull_event","onresourcetimingbufferfull")}} event handler in the `init()` function.

```js
function buffer_full(event) {
Expand Down