Skip to content
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

Prioritize loading poster image of video LCP elements #1183

Open
westonruter opened this issue Apr 25, 2024 · 0 comments
Open

Prioritize loading poster image of video LCP elements #1183

westonruter opened this issue Apr 25, 2024 · 0 comments
Labels
[Plugin] Optimization Detective Issues for the Optimization Detective plugin

Comments

@westonruter
Copy link
Member

westonruter commented Apr 25, 2024

Feature Description

When a video is the LCP element and it has a poster image, we should prioritize the loading of that poster image with a fetchpriority=high preload link. This would be a simple addition to the existing logic that does the same for an img or background-image which is the LCP element.

This can be done as part of the Image Prioritizer plugin. See #1088.

Aside: if there is no poster, should an LCP video element also preload the video URL as well?

@westonruter westonruter added the [Plugin] Optimization Detective Issues for the Optimization Detective plugin label Apr 25, 2024
@sstopfer sstopfer added [Plugin] Optimization Detective Issues for the Optimization Detective plugin and removed [Plugin] Optimization Detective Issues for the Optimization Detective plugin labels May 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Plugin] Optimization Detective Issues for the Optimization Detective plugin
Projects
Status: Not Started/Backlog 📆
Development

No branches or pull requests

2 participants