Update link rel preload to reflect browser support#32740
Merged
sideshowbarker merged 2 commits intomdn:mainfrom Mar 19, 2024
Merged
Update link rel preload to reflect browser support#32740sideshowbarker merged 2 commits intomdn:mainfrom
sideshowbarker merged 2 commits intomdn:mainfrom
Conversation
Contributor
|
Preview URLs External URLs (2)URL:
(comment last updated: 2024-03-19 11:29:16) |
sideshowbarker
approved these changes
Mar 19, 2024
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
<link rel=preload>only works with certainastypes currently so this section is wrong:https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel/preload#what_types_of_content_can_be_preloaded
See example here: https://resource-loading-examples.glitch.me/preload-types.html
(tested in Chrome 123, Firefox 123, and Safari 17.4)
<video>is also NOT one of theastypes supported by any browser so this section is also wrong as the example doesn't work:https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel/preload#including_a_mime_type
It should be replaced with image type instead
Update the link rel preload doc to reflect browser support.
Motivation
Have received several requests as to why this is not supported in Chrome. But it's not supported in ANY browser.
Additional details
You can test yourself with this example here: https://resource-loading-examples.glitch.me/preload-types.html
Related issues and pull requests
Also raised a spec discussion here:
whatwg/html#8332 (comment)
And a caniuse request here: Fyrd/caniuse#7006
Will raise a BCD update next and update this note. (Edit: raised mdn/browser-compat-data#22658)