-
Notifications
You must be signed in to change notification settings - Fork 212
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
Preload the picture markup #6530
Labels
lcp
priority: high
Issues which should be resolved as quickly as possible
type: enhancement
Improvements that slightly enhance existing functionality and are fast to implement
Milestone
Comments
Expected data structure in DB for LCP:
Same will apply for ATF. |
14 tasks
14 tasks
This was referenced May 24, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
lcp
priority: high
Issues which should be resolved as quickly as possible
type: enhancement
Improvements that slightly enhance existing functionality and are fast to implement
Before submitting an issue please check that you’ve completed the following steps:
Describe the bug
srcset of picture element isn't preloaded as mentioned here https://web.dev/articles/preload-responsive-images#preload_and_picture
Expected behavior
srcset shall be preloaded as same as src img when it's detected a LCP image
The markup input:
The markup output:
Acceptance Criteria (for WP Media team use only)
LCP
source srcset
images are preloaded using the image URL from thesrcset
min-width
is not defined for the nextsrcset
images we'll need to add it using the previousmax-width
value + 0.1px.min-width
is not defined for theimg
markup, we'll need to add it using the previousmax-width
value + 0.1px.fetchpriority="high"
is added to the preload markupAbove the fold
The text was updated successfully, but these errors were encountered: