[Smush Pro] Images missing after enabling Smush

After enabling Smush most of the images on my site went missing. Can you help?

  • Adam
    • Support Gorilla

    Hello Freelanews TV

    I hope you’re fine today!

    The issue was caused by the theme on site. It has some sort of “lazy load” feature built-in and when that feature is enabled, it’s adding a transparent png image to each image tag (“img” HTML tag) on site as a “placeholder”.

    It does it in a way that seems to be a bit non-standard and is, apparently, “fooling” Smush Pro. With this option enabled, Smush sees that “placeholder” image and “thinks” (which is expected, given the HTML page source created by the theme) that this is the image that should be served so if CDN is active in Smush Pro – it takes that image.

    That’s why the images are “gone”: the theme’s “lazy load” transparent placeholder image is served from CDN instead of the image that should be there.

    There’s an option to disable lazy load in theme settings (“Appearance -> Customize -> Styling”:wink:. I’ve already disabled it since there’s Lazy Load in Smush Pro also and now with Smush Pro enabled (along with its Lazy Load and CDN options) images are there on site, lazy-loaded and served from Smush CDN as expected.

    Best regards,
    Adam