[Smush Pro] Lazy Loading causes an issue on front-end

When Lazy Loading is enabled in Smush it causes layout issues on the front page of my site. I would like to use this feature without it affecting my site. Can you help me with that?

  • Predrag Dubajic
    • Support

    Hi Catina,

    I had a look at your site and noticed that there’s a console error when Lazy Load is enabled and I was able to fix that by excluding Smush from Autoptimize and Async JavaScript but unfortunately that didn’t help to fix the issue with section being pushed down.

    It seems that the slider height is calculated during page load and as Lazy Load affects how the images are loaded the script is unable to calculate correct height and apply it to slider element.

    We could probably sort that out by excluding slider images from Smush Lazy Load but those images don’t have any unique classes that we could use.

    Could you check with your theme devs if the slider images can have unique classes assigned to them so we could use that to exclude it from Lazy Load?

    Best regards,
    Predrag