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
fix(common): Add fetchpriority to ngOptimizedImage preloads #48010
Conversation
Add fetchpriority='high' to ngOptimizedImage preloads to so their priority matches the priority of the image element itself
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This PR was merged into the repository by commit 1d1e33e. |
Add fetchpriority='high' to ngOptimizedImage preloads to so their priority matches the priority of the image element itself PR Close #48010
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
…48010) Add fetchpriority='high' to ngOptimizedImage preloads to so their priority matches the priority of the image element itself PR Close angular#48010
This PR simply adds
fetchpriority="high"
to the preload link elements created by NgOptimizedImage. This is a necessary bugfix because without it, thefetchpriority
on the preload link doesn't match thefetchpriority
on the image element, which could cause the preload to actually lower the image download prioritization, which is the opposite of what we want to occur.This PR also adds a related line to the documentation, which was originally missing. CC: @AndrewKushnir @pkozlowski-opensource @kara