Exclude specific images from lazyload – issues with Gutenberg
-
On a site that has Nitropack, we want to be able to use “Exclude CSS Selectors” functionality to prevent specific images from lazyloading. The issue is that with the Gutenberg block editor, when you assign an additional CSS class to an element, it adds it to the parent object, not to the image itself. And thus, the lazyloading exclusion is doing nothing.
Is it possible to do either of the following:
- Put more than just a selector in the exclusion list, i.e. something like: .no-lazyload figure img ??
- Some sort of filter or something that will check for .no-lazyload on an element and then also assign it to the child img?
As it is right now, the exclusion of elements for lazyloaded images is kind of useless, given how Gutenberg builds blocks.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Exclude specific images from lazyload – issues with Gutenberg’ is closed to new replies.