Hi @morpheus83,
Yet the logo is being parsed as lazy load. Please check the URL-
The class “logo” is added outside the img HTML tag. To exclude an image from lazyload using class or ID, the class needs be present inside the img tag ie for example:
<img src="path-to-image" class="logo">
In your website, the class “logo” is added outside the img tag ie for example:
<a class="logo>
<img src="path-to-image">
Screenshot:
Screenshot at 17:42:40.png
Once you make the changes as mentioned above it should work. However, any specific reason to exclude the image from lazyload? I don’t see an issue with the logo loading at the moment with lazyload enabled.
Another workaround to exclude would be based on URL, you can find the following snippet helpful:
add_filter( 'smush_skip_image_from_lazy_load', function( $status, $src, $image ) {
if ( 'https://url-to-image.png' === $src ) {
$status = true;
}
return $status;
}, 99, 3 );
You’ll have to replace the line:
https://url-to-image.png
To your actual image. The above code can be implemented as a mu-plugins. Please check the following doc for more info:
https://premium.wpmudev.org/docs/using-wordpress/installing-wordpress-plugins/#installing-mu-plugins
I hope this helps. Please do let us know if you need any further assistance. Have a nice day ahead.
Kind Regards,
Nithin