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
Describe the bug The Optimize critical images feature adds a preload tag for empty href values.
href
To Reproduce Steps to reproduce the behavior:
<div style="background-image:url();"></div>
<link rel="preload" data-rocket-preload as="image" href="" fetchpriority="high">
Expected behavior Optimize critical images should avoid adding a preload tag in these conditions.
Screenshots Original markup: https://jmp.sh/34iunv8H Preload tag: https://jmp.sh/y6BkzWZq
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context Ticket: https://secure.helpscout.net/conversation/2762969880/523284?viewId=273761 Slack thread: https://wp-media.slack.com/archives/C072P5EU5DF/p1731706632758679
Thanks!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
The Optimize critical images feature adds a preload tag for empty
href
values.To Reproduce
Steps to reproduce the behavior:
<div style="background-image:url();"></div>
as a markup for LCP element.<link rel="preload" data-rocket-preload as="image" href="" fetchpriority="high">
Expected behavior
Optimize critical images should avoid adding a preload tag in these conditions.
Screenshots
Original markup: https://jmp.sh/34iunv8H
Preload tag: https://jmp.sh/y6BkzWZq
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Ticket: https://secure.helpscout.net/conversation/2762969880/523284?viewId=273761
Slack thread: https://wp-media.slack.com/archives/C072P5EU5DF/p1731706632758679
Thanks!
The text was updated successfully, but these errors were encountered: