-
Notifications
You must be signed in to change notification settings - Fork 46.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: Auto generated preload links should respect fetchpriority if specified #26810
Labels
Status: Unconfirmed
A potential issue that we haven't yet confirmed as a bug
Comments
liuyenwei
added
the
Status: Unconfirmed
A potential issue that we haven't yet confirmed as a bug
label
May 12, 2023
cc @gnoff |
@liuyenwei PR would be welcome! |
Closing per #26826 (review). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
React version: 18.3.0-canary-a389046a5-20230512
Steps To Reproduce
<script>
or<link>
tags withfetchpriority
set<link rel="preload">
links for each of the discovered resources but without the same fetchpriority set.Link to code example:
The current behavior
Currently, if we server render a component such as the one below:
React will also render preload links for the
script
andlink
but without thefetchpriority
set:The result is that both
styles.css
andscript.js
are fetched withfetchpriority
set to highThe expected behavior
When generating preload links for
script
andlink
components, React should respectfetchpriority
if specified.The text was updated successfully, but these errors were encountered: