Intent to implement and ship: Allow as=fetch in navigation early hints preload

141 views
Skip to first unread message

Kenichi Ishibashi

unread,
Jan 22, 2023, 8:57:31 PM1/22/23
to blink-dev

Contact emails

ba...@chromium.org

Explainer

None. This feature is standardized.

Specification

https://html.spec.whatwg.org/multipage/semantics.html#attr-link-as

Summary

Support <link rel=preload as=fetch> in navigation early hints. This allows web developers to preload resources that are fetched by the fetch() API.



Blink component

Blink>Loader>Preload

TAG review



TAG review status

Not applicable

Risks



Interoperability and Compatibility

Low. The feature is already specified in the HTML and the Fetch standard.



Gecko: In development (https://bugzilla.mozilla.org/show_bug.cgi?id=1407355)

WebKit: No signal Previously asked in https://lists.webkit.org/pipermail/webkit-dev/2021-May/031861.html

Web developers: No signals. We got this feature request from one of our partners.

Other signals:

WebView application risks

N/A



Debuggability

We have a tracking bug to improve debuggability.

Will this feature be supported on all six Blink platforms (Windows, Mac, Linux, Chrome OS, Android, and Android WebView)?

Yes

Is this feature fully tested by web-platform-tests?

We will submit a Web Platform Test along with the implementation (Ongoing CL).

Flag name

N/A

Requires code in //chrome?

False

Tracking bug

https://bugs.chromium.org/p/chromium/issues/detail?id=1408649

Estimated milestones

M112



Anticipated spec changes

None



Link to entry on the Chrome Platform Status

https://chromestatus.com/feature/6195487999262720

This intent message was generated by Chrome Platform Status.

Yoav Weiss

unread,
Jan 23, 2023, 12:18:19 AM1/23/23
to Kenichi Ishibashi, blink-dev
LGTM1

On Mon, Jan 23, 2023 at 2:57 AM Kenichi Ishibashi <ba...@chromium.org> wrote:

Contact emails

ba...@chromium.org

Explainer

None. This feature is standardized.

It's typically helpful to write a few words that explain the feature and the addition to it, even if there's no need for a full fledged explainer document for this specific addition. 
For example, you could have linked to the feature's broader explainer, and then explain that this adds a new `as` value of "fetch" that would enable developers to use Early Hints for resources with that potential destination (e.g. `fetch()`ed resources).



Specification

https://html.spec.whatwg.org/multipage/semantics.html#attr-link-as

Summary

Support <link rel=preload as=fetch> in navigation early hints. This allows web developers to preload resources that are fetched by the fetch() API.



Blink component

Blink>Loader>Preload

TAG review



TAG review status

Not applicable

I agree that a TAG review is not needed here, but it's typically better to outline the reason.
In this case, we're adding support for an extra type of resource without changing the API's shape or its integration with the rest of the platform.
 


Risks



Interoperability and Compatibility

Low. The feature is already specified in the HTML and the Fetch standard.



Gecko: In development (https://bugzilla.mozilla.org/show_bug.cgi?id=1407355)

WebKit: No signal Previously asked in https://lists.webkit.org/pipermail/webkit-dev/2021-May/031861.html

Web developers: No signals. We got this feature request from one of our partners.

I would count a feature request as a slightly positive signal.
 

Other signals:

WebView application risks

N/A



Debuggability

We have a tracking bug to improve debuggability.

Will this feature be supported on all six Blink platforms (Windows, Mac, Linux, Chrome OS, Android, and Android WebView)?

Yes

Is this feature fully tested by web-platform-tests?

We will submit a Web Platform Test along with the implementation (Ongoing CL).

Flag name

N/A

Requires code in //chrome?

False

Tracking bug

https://bugs.chromium.org/p/chromium/issues/detail?id=1408649

Estimated milestones

M112



Anticipated spec changes

None



Link to entry on the Chrome Platform Status

https://chromestatus.com/feature/6195487999262720

This intent message was generated by Chrome Platform Status.

--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAPLXX--M%3DZkTz-ZicOW61C9tUJjKvz4cQU49EsnDK7PUG5puGg%40mail.gmail.com.

Kenichi Ishibashi

unread,
Jan 24, 2023, 2:44:17 AM1/24/23
to Yoav Weiss, blink-dev
Thank you Yoav for the suggestions! I'll add more words and context next time.

Rick Byers

unread,
Jan 25, 2023, 12:36:22 PM1/25/23
to Kenichi Ishibashi, Yoav Weiss, blink-dev

Mike Taylor

unread,
Jan 25, 2023, 2:26:56 PM1/25/23
to Rick Byers, Kenichi Ishibashi, Yoav Weiss, blink-dev
Reply all
Reply to author
Forward
0 new messages