I have a question about the lazyload behavior of the theme.
Since I use an external plugin to optimize the delivery of all images within the magazine, I have deactivated all of the theme's lazyload options.
With a single exception, this seems to work well. However, I'm having enormous problems disabling the lazyload behavior of a post's featured image. Of course, this option is also disabled within the theme. But it still loads with lazyload.
Within Optimole (the image plugin), lazyload is also disabled for the first few images. You can also set filters (per ID and class). There I set the classes "pc-singlep-img" and "wp-post-image" as exceptions to be on the safe side.
After consulting Optimole support, we are sure that the lazyload is not triggered incorrectly by the plugin.
Hi there,
I have a question about the lazyload behavior of the theme.
Since I use an external plugin to optimize the delivery of all images within the magazine, I have deactivated all of the theme's lazyload options.
With a single exception, this seems to work well. However, I'm having enormous problems disabling the lazyload behavior of a post's featured image. Of course, this option is also disabled within the theme. But it still loads with lazyload.
Within Optimole (the image plugin), lazyload is also disabled for the first few images. You can also set filters (per ID and class). There I set the classes "pc-singlep-img" and "wp-post-image" as exceptions to be on the safe side.
After consulting Optimole support, we are sure that the lazyload is not triggered incorrectly by the plugin.
An example code would be this:
Any idea what this could be?
Best regards
Torsten
Hi again,
It looks like I found an answer to my question completely spontaneously. And maybe even a solution. At least a temporary one.
It might make sense to use this knowledge in some way for future updates of the theme:
The problem is apparently caused by the native lazyload function introduced (since Wordpress 5.5). So it is firmly integrated into Wordpress.
Since this version, WordPress loads all images as lazyload and async.
To disable lazyload behavior I found a plugin:
"Disable lazy load" by Jeff Starr.
No idea if it also suppresses async. I still have to watch that. But for the moment I no longer see that the featured image was loaded with lazyload.
Kind regards!
Torsten
Hi,
Thank you for providing the information.
Regards,
PenciDesign.