LazyLoad and JetPack Compare Images block compatibility #3383
Labels
effort: [XS]
< 1 day of estimated development time
priority: medium
Issues which are important, but no one will go out of business.
type: bug
Indicates an unexpected problem or unintended behavior
Milestone
Before submitting an issue please check that you’ve completed the following steps:
Describe the bug
Images are not being displayed when added with the JetPack Compare Image block.
The markup is cut, so only the pixel svg is visible when I inspect the element, but not the image source.
Screenshots:
With LazyLoad disabled: https://jmp.sh/O7wBHsF
With LazyLoad enabled: https://jmp.sh/ZOZZB7N
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The images have to be displayed as here: https://jmp.sh/14xZcAi
Current solution
Exclude class name
class="image-compare
from LazyLoad option.Block markup in source code before LL is applied: https://jmp.sh/HnYusFT
Additional context
The Compare block works with JetPack lazy-load and with WordPress core lazy-load because images are actually not being lazyloaded, i.e. excluded.
Related ticket: https://secure.helpscout.net/conversation/1351509800/217772/
Slack: https://wp-media.slack.com/archives/G01BGNQU7AP/p1606920475010500
Possibly adding this LazyLoad exclusion automatically would be a solution from our end?
Or the compatibility needs to be done by JetPack?
Backlog Grooming (for WP Media dev team use only)
The text was updated successfully, but these errors were encountered: