Skip to content

fetchlater feature #2771

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

Merged
merged 9 commits into from
Apr 3, 2025
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
7 changes: 7 additions & 0 deletions features/fetchlater.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name: fetchLater
description: "The `fetchLater()` method requests a deferred fetch sent at an unknown time. The browser chooses a reliable time to send the request, ideally when the document is unloaded, and ignores the response. This API is useful for sending beacons to a server without expecting a particular response."
spec: https://github.com/whatwg/fetch/pull/1647
compat_features:
- api.FetchLaterResult
- api.FetchLaterResult.activated
- api.Window.fetchLater
12 changes: 12 additions & 0 deletions features/fetchlater.yml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Generated from: fetchlater.yml
# Do not edit this file by hand. Edit the source file instead!

status:
baseline: false
support:
chrome: "135"
chrome_android: "135"
compat_features:
- api.FetchLaterResult
- api.FetchLaterResult.activated
- api.Window.fetchLater
4 changes: 4 additions & 0 deletions scripts/specs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,10 @@ const defaultAllowlist: allowlistItem[] = [
[
"https://www.w3.org/TR/2018/SPSD-html5-20180327/embedded-content-0.html#synchronising-multiple-media-elements",
"Allowed for the mediacontroller feature. This is the superseded HTML5 spec that still contains MediaController."
],
[
"https://github.com/whatwg/fetch/pull/1647",
"This is where fetchLater() is in the process of being spec'd. Once the PR merges, change the spec url in fetchlater.yml, and remove this exception."
]
];

Expand Down