Join the Soledad Facebook Users Group here
for Share, assistance, discussion, and Updates related to Soledad WordPress Theme.

If you can't create a new ticket - you can send us an email via our contact form and we will get back to you.

Okay
  Public Ticket #3562144
Lazyload question
Closed

Comments

  •  6
    Torsten started the conversation

    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:

     <img loading="lazy" width="1170" height="780" src="https://medienspeicher.1-2-family.de/cb:rGzu.32081/w:1170/h:780/q:mauto/f:…" class="pc-singlep-img wp-post-image" alt="Bio Lebensmittel" decoding="async">

    Any idea what this could be? 

    Best regards

    Torsten



  •  6
    Torsten replied

    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

  •  2,610
    PenciDesign replied

    Hi,

    Thank you for providing the information.

    Regards,
    PenciDesign.