From 86123c99fc942eb8188b99e1c07a2d3303e55649 Mon Sep 17 00:00:00 2001 From: "Daniel D. Beck" Date: Tue, 11 Nov 2025 12:55:17 +0100 Subject: [PATCH] Create a `resource-hints` group --- features/fetch-priority.yml | 1 + features/link-rel-dns-prefetch.yml | 1 + features/link-rel-preconnect.yml | 1 + features/link-rel-prefetch.yml | 1 + features/link-rel-preload.yml | 1 + groups/resource-hints.yml | 1 + 6 files changed, 6 insertions(+) create mode 100644 groups/resource-hints.yml diff --git a/features/fetch-priority.yml b/features/fetch-priority.yml index 30bec2e0fb4..0dce8d6f94c 100644 --- a/features/fetch-priority.yml +++ b/features/fetch-priority.yml @@ -3,5 +3,6 @@ description: The `fetch()` `priority` option and the `fetchpriority` HTML attrib spec: - https://fetch.spec.whatwg.org/#request-priority - https://html.spec.whatwg.org/multipage/urls-and-fetching.html#fetch-priority-attributes +group: resource-hints status: compute_from: http.headers.Link.fetchpriority diff --git a/features/link-rel-dns-prefetch.yml b/features/link-rel-dns-prefetch.yml index 6363055406c..a559ac5cc8c 100644 --- a/features/link-rel-dns-prefetch.yml +++ b/features/link-rel-dns-prefetch.yml @@ -2,6 +2,7 @@ name: '' description: The `rel="dns-prefetch"` attribute for the `` HTML element is a hint to the browser that the page or user is likely to request resources from another domain, so the browser should preemptively resolve DNS for the `href` value's domain. spec: https://html.spec.whatwg.org/multipage/links.html#link-type-dns-prefetch caniuse: link-rel-dns-prefetch +group: resource-hints compat_features: - html.elements.link.rel.dns-prefetch # TODO: https://github.com/web-platform-dx/web-features/issues/1971 diff --git a/features/link-rel-preconnect.yml b/features/link-rel-preconnect.yml index 675b2e43d23..11122d1d851 100644 --- a/features/link-rel-preconnect.yml +++ b/features/link-rel-preconnect.yml @@ -1,5 +1,6 @@ name: '' description: The `rel="preconnect"` attribute for the `` HTML element is a hint to the browser that the page or user is likely to request resources from another origin, so the browser should preemptively start a connection to the `href` value's origin. spec: https://html.spec.whatwg.org/multipage/links.html#link-type-preconnect +group: resource-hints compat_features: - html.elements.link.rel.preconnect diff --git a/features/link-rel-prefetch.yml b/features/link-rel-prefetch.yml index d9eb9a3e9e4..44d3a5c88c1 100644 --- a/features/link-rel-prefetch.yml +++ b/features/link-rel-prefetch.yml @@ -2,6 +2,7 @@ name: '' description: The `rel="prefetch"` attribute for the `` HTML element is a hint to the browser that the user is likely to navigate to a resource, so the browser should preemptively fetch and cache the resource. spec: https://html.spec.whatwg.org/multipage/links.html#link-type-prefetch caniuse: link-rel-prefetch +group: resource-hints status: compute_from: html.elements.link.rel.prefetch compat_features: diff --git a/features/link-rel-preload.yml b/features/link-rel-preload.yml index 6eaf85d9275..e8b79fad5bd 100644 --- a/features/link-rel-preload.yml +++ b/features/link-rel-preload.yml @@ -2,6 +2,7 @@ name: '' description: The `rel="preload"` attribute for the `` HTML element requests resources, such as images or style sheets, that the page needs soon, so the browser may prioritize them for loading before rendering begins. spec: https://html.spec.whatwg.org/multipage/links.html#link-type-preload caniuse: link-rel-preload +group: resource-hints status: compute_from: html.elements.link.rel.preload compat_features: diff --git a/groups/resource-hints.yml b/groups/resource-hints.yml new file mode 100644 index 00000000000..aa54271eb0b --- /dev/null +++ b/groups/resource-hints.yml @@ -0,0 +1 @@ +name: Resource hints