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

FetchLater #2657

Open
mingyc opened this issue Feb 17, 2025 · 7 comments
Open

FetchLater #2657

mingyc opened this issue Feb 17, 2025 · 7 comments
Labels
feature definition Creating or defining new features or groups of features.

Comments

@mingyc
Copy link

mingyc commented Feb 17, 2025

Specification

whatwg/fetch#1647

Description

Propose to add a new feature FetchLater for the corresponding JS API.

Documentation

https://github.com/WICG/pending-beacon/blob/main/docs/fetch-later-api.md

Browser support

@mingyc mingyc added the feature definition Creating or defining new features or groups of features. label Feb 17, 2025
@captainbrosset
Copy link
Contributor

Thank you, we should indeed add this. The feature is shipping with Chrome and Edge 134.
Note that BCD has not yet been updated for Chrome Beta 134, at least I don't think it has. @Elchi3 can you confirm?

@Elchi3
Copy link
Collaborator

Elchi3 commented Feb 17, 2025

I saw and tested this but I haven't confirmed it shipping in Chrome 134 beta.

@mingyc
Copy link
Author

mingyc commented Feb 18, 2025

We haven't enabled it for M134 Beta yet.

@mingyc
Copy link
Author

mingyc commented Feb 18, 2025

Sorry maybe a noob question, but if we are already using Chromium WebFeature for FetchLater. Do we still need to switch to WebDXFeature, or can we log both?

@captainbrosset
Copy link
Contributor

We haven't enabled it for M134 Beta yet.

https://chromestatus.com/roadmap still has it as part of 134. Will it stay on 134, or likely move out to a later release?

Sorry maybe a noob question, but if we are already using Chromium WebFeature for FetchLater. Do we still need to switch to WebDXFeature, or can we log both?

Maybe @foolip will know how to reply to this, I'm not sure I understand what you mean by "Chromium WebFeature" vs. "WebDXFeature". I'm guessing this is about use-counters, but not sure.

@atopal
Copy link
Collaborator

atopal commented Feb 18, 2025

@mingyc assuming you're talking about use counters, you'd have to add a WebDXFeature use counter, even if you already added an old style WebFeature use counter already, but you can have both, no problem. Keep in mind, WebDXFeatures are different from old style use counters in that there is a 1:1 mapping between a use counter and a feature, they measure usage on a high level feature level, more about that in the public doc.

@foolip
Copy link
Collaborator

foolip commented Feb 19, 2025

@mingyc you must mean WebFeature::kFetchLater which is the classic use counter, the kind that we show data from on chromestatus.com. You can absolutely keep such use counters, and just add a simple mapping from them to "WebDXFeature" which is organized around web-features. https://chromium-review.googlesource.com/c/chromium/src/+/6269037 is an example of this I did recently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature definition Creating or defining new features or groups of features.
Projects
None yet
Development

No branches or pull requests

5 participants