Replies: 2 comments 2 replies
-
|
Hi @crs1138, Sorry for the late reply. If you want to change the image Would this approach help? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


Uh oh!
There was an error while loading. Please reload this page.
-
Would it be possible to implement a new option for any block containing images (or at least for the image block itself) to control the lazy loading? I tried to do that using block's class and filter
wp_img_tag_add_loading_attrbut the class is attached to the<figure>wrapper and the filter works with the<img>element.I'm running out of ideas apart implementing some sort of filter and adding an attribute to the core block. Is there another way? Why not to include this as a part of the block with the default value being
lazy?Beta Was this translation helpful? Give feedback.
All reactions