We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I think this change knocked it out of the suggestions for any image that doesn't have a fetchPriority attribute in the markup. b7931d2
Both of these work instead.
if (!$isBG && !$isVideo && !isset($lcp['element']['fetchPriority']) || $lcp['element']['fetchPriority'] != 'high') {
or if (!$isBG && !$isVideo && !(isset($lcp['element']['fetchPriority']) && $lcp['element']['fetchPriority'] == 'high')) {
if (!$isBG && !$isVideo && !(isset($lcp['element']['fetchPriority']) && $lcp['element']['fetchPriority'] == 'high')) {
I think the second one is better because we should show this experiment if there's a fetchPriority="low" on there for some reason.
The text was updated successfully, but these errors were encountered:
413cab9
Merge pull request #2422 from WPO-Foundation/2421
48f0438
Fixes #2421 - LCP priority hint experiment suggestion
scottjehl
No branches or pull requests
I think this change knocked it out of the suggestions for any image that doesn't have a fetchPriority attribute in the markup.
b7931d2
Both of these work instead.
if (!$isBG && !$isVideo && !isset($lcp['element']['fetchPriority']) || $lcp['element']['fetchPriority'] != 'high') {
or
if (!$isBG && !$isVideo && !(isset($lcp['element']['fetchPriority']) && $lcp['element']['fetchPriority'] == 'high')) {
I think the second one is better because we should show this experiment if there's a fetchPriority="low" on there for some reason.
The text was updated successfully, but these errors were encountered: