Skip to content
Open
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
99 changes: 99 additions & 0 deletions html/elements/link.json
Original file line number Diff line number Diff line change
Expand Up @@ -1000,6 +1000,105 @@
"standard_track": true,
"deprecated": false
}
},
"as-json": {
"__compat": {
"description": "`as=json`",
"mdn_url": "https://developer.mozilla.org/docs/Web/HTML/Reference/Attributes/rel/modulepreload",
"spec_url": "https://html.spec.whatwg.org/multipage/links.html#module-preload-destination",
"support": {
"chrome": {
"version_added": "147"
},
"chrome_android": "mirror",
"edge": "mirror",
"firefox": {
"version_added": false
},
"firefox_android": "mirror",
"oculus": "mirror",
"opera": "mirror",
"opera_android": "mirror",
"safari": {
"version_added": "26.2"
},
"safari_ios": "mirror",
"samsunginternet_android": "mirror",
"webview_android": "mirror",
"webview_ios": "mirror"
},
"status": {
"experimental": true,
"standard_track": true,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Setting standard_track: true requires providing a spec_url.

In this case, we can to link to https://html.spec.whatwg.org/multipage/links.html#preload-destination for all values.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, added. The URL for this is slightly different, it's https://html.spec.whatwg.org/multipage/links.html#module-preload-destination

I also added the MDN link - is that actually necessary given the modulepreload MDN link in the parent?

"deprecated": false
}
}
},
"as-script": {
"__compat": {
"description": "`as=script`",
"mdn_url": "https://developer.mozilla.org/docs/Web/HTML/Reference/Attributes/rel/modulepreload",
"spec_url": "https://html.spec.whatwg.org/multipage/links.html#module-preload-destination",
"support": {
"chrome": {
"version_added": "66"
},
"chrome_android": "mirror",
"edge": "mirror",
"firefox": {
"version_added": "115"
},
"firefox_android": "mirror",
"oculus": "mirror",
"opera": "mirror",
"opera_android": "mirror",
"safari": {
"version_added": "17"
},
"safari_ios": "mirror",
"samsunginternet_android": "mirror",
"webview_android": "mirror",
"webview_ios": "mirror"
},
"status": {
"experimental": false,
"standard_track": true,
"deprecated": false
}
}
},
"as-style": {
"__compat": {
"description": "`as=style`",
"mdn_url": "https://developer.mozilla.org/docs/Web/HTML/Reference/Attributes/rel/modulepreload",
"spec_url": "https://html.spec.whatwg.org/multipage/links.html#module-preload-destination",
"support": {
"chrome": {
"version_added": "147"
},
"chrome_android": "mirror",
"edge": "mirror",
"firefox": {
"version_added": false
},
"firefox_android": "mirror",
"oculus": "mirror",
"opera": "mirror",
"opera_android": "mirror",
"safari": {
"version_added": false
},
"safari_ios": "mirror",
"samsunginternet_android": "mirror",
"webview_android": "mirror",
"webview_ios": "mirror"
},
"status": {
"experimental": true,
"standard_track": true,
"deprecated": false
}
}
}
},
"preconnect": {
Expand Down