From 5c29ff9c0420519a694fb347afca781939e40292 Mon Sep 17 00:00:00 2001 From: "Kurt Catti-Schmidt (SCHMIDT)" Date: Tue, 9 Dec 2025 14:45:54 -0800 Subject: [PATCH 1/3] Adding changes to link tag page --- .../html/reference/attributes/rel/modulepreload/index.md | 2 +- files/en-us/web/html/reference/elements/link/index.md | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/files/en-us/web/html/reference/attributes/rel/modulepreload/index.md b/files/en-us/web/html/reference/attributes/rel/modulepreload/index.md index 915093ac8f99ed3..d8ca99b3fb3fa25 100644 --- a/files/en-us/web/html/reference/attributes/rel/modulepreload/index.md +++ b/files/en-us/web/html/reference/attributes/rel/modulepreload/index.md @@ -21,7 +21,7 @@ If `crossorigin` is set to [`anonymous`](/en-US/docs/Web/HTML/Reference/Attribut If `crossorigin` is set to [`use-credentials`](/en-US/docs/Web/HTML/Reference/Attributes/crossorigin#use-credentials) then the credentials mode is [`include`](/en-US/docs/Web/API/Request/credentials#include), and user credentials for both single- and cross-origin requests. The [`as`](/en-US/docs/Web/HTML/Reference/Elements/link#as) attribute is optional for links with `rel="modulepreload"`, and defaults to `"script"`. -It can be set to `"script"` or any script-like destination, such as `"audioworklet"`, `"paintworklet"`, `"serviceworker"`, `"sharedworker"`, or `"worker"`. +It can be set to `"script"`, `"style"`, `"json"`, or any script-like destination, such as `"audioworklet"`, `"paintworklet"`, `"serviceworker"`, `"sharedworker"`, or `"worker"`. An [`Event`](/en-US/docs/Web/API/Event/Event) named "error" is fired on the element if any other destination is used. A browser _may_ additionally also choose to automatically fetch any dependencies of the module resource. diff --git a/files/en-us/web/html/reference/elements/link/index.md b/files/en-us/web/html/reference/elements/link/index.md index 4288b2bd2d011fa..f03e035df55e010 100644 --- a/files/en-us/web/html/reference/elements/link/index.md +++ b/files/en-us/web/html/reference/elements/link/index.md @@ -142,6 +142,12 @@ This element includes the [global attributes](/en-US/docs/Web/HTML/Reference/Glo CSS *-image rules + + json + + `modulepreload` destinations. + + object <object> elements @@ -156,7 +162,7 @@ This element includes the [global attributes](/en-US/docs/Web/HTML/Reference/Glo style <link rel=stylesheet> elements, CSS - @import + @import, and `modulepreload` destinations. From 0b5abeb5480b95fd4dcfa7c742c252ed8dc30ad2 Mon Sep 17 00:00:00 2001 From: Kurt Catti-Schmidt Date: Wed, 10 Dec 2025 16:12:32 -0800 Subject: [PATCH 2/3] Update files/en-us/web/html/reference/elements/link/index.md Co-authored-by: Chris Mills --- files/en-us/web/html/reference/elements/link/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/en-us/web/html/reference/elements/link/index.md b/files/en-us/web/html/reference/elements/link/index.md index f03e035df55e010..a49eabbb8d1d8b7 100644 --- a/files/en-us/web/html/reference/elements/link/index.md +++ b/files/en-us/web/html/reference/elements/link/index.md @@ -145,7 +145,7 @@ This element includes the [global attributes](/en-US/docs/Web/HTML/Reference/Glo json - `modulepreload` destinations. + modulepreload destinations. From b28c8d118fefce2507f2e41d7d21d36c0239ef2a Mon Sep 17 00:00:00 2001 From: Kurt Catti-Schmidt Date: Wed, 10 Dec 2025 16:12:45 -0800 Subject: [PATCH 3/3] Update files/en-us/web/html/reference/elements/link/index.md Co-authored-by: Chris Mills --- files/en-us/web/html/reference/elements/link/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/en-us/web/html/reference/elements/link/index.md b/files/en-us/web/html/reference/elements/link/index.md index a49eabbb8d1d8b7..55edd5ab10a9878 100644 --- a/files/en-us/web/html/reference/elements/link/index.md +++ b/files/en-us/web/html/reference/elements/link/index.md @@ -162,7 +162,7 @@ This element includes the [global attributes](/en-US/docs/Web/HTML/Reference/Glo style <link rel=stylesheet> elements, CSS - @import, and `modulepreload` destinations. + @import and modulepreload destinations.