LCP element + facaded iframe #6529
Labels
lcp
priority: medium
Issues which are important, but no one will go out of business.
type: enhancement
Improvements that slightly enhance existing functionality and are fast to implement
Context
iframe
might be the most prominent element above the fold. Lighthouse currently ignores it as an LCP candidate and will pick the next candidate.If the
iframe
is facaded by WP Rocket, like a YouTube video when using the preview image sub-option, thatiframe
will become the LCP element.Expected behavior
Facadable elements need to be reported but only processed by WP Rocket if the facade is applied.
Acceptance Criteria
To be defined.
Additional information
We will have more facades implemented in the future. The logic needs to be extendable to any supported facade other than YouTube.
The text was updated successfully, but these errors were encountered: