Remove loading=”lazy” from Product Page Hero Image in XStore Theme

Solved4 replies3 participantsUpdated by Tony Rodriguez

  • Avatar: Abhinandan
    Abhinandan
    Participant

    Hi support team,
    On the product page of our site, the main hero image (featured product image) is loading slowly due to the loading=”lazy” attribute. I’d like to remove this lazy loading behavior only for the hero image, while keeping it for other images to maintain performance.

    Screenshot attached.

    Could you please guide me on how to exclude the hero image from lazy loading—whether via theme settings, a child theme override, or a filter hook?
    Thanks in advance!

    Files is visible for topic creator and
    support staff only.

    4 Answers

    Avatar: Abhinandan
    Abhinandan
    Participant

    Additional Note:
    I’ve also noticed that some images are being requested on the homepage even though they’re not in use and don’t exist in the file system. For example, the first image shown in the screenshot is being loaded unnecessarily, possibly due to leftover references or theme logic. This is causing 404 errors and affecting performance.
    Could you please advise how to:
    – Exclude the hero image from lazy loading.
    – Prevent unused or missing images from being requested.

    Files is visible for topic creator and
    support staff only.
    Avatar: Jack Richardson
    Jack Richardson
    Support staff

    Hello @Abhinandan,

    We hope this message finds you well.

    We would like to kindly inform you that we have already provided a response to your inquiry regarding the lazy-loading functionality. You may refer to our reply at the following link:
    https://www.8theme.com/topic/speed-optimization-for-product-page-and-home-page/#post-453002

    To disable the default WordPress lazy loading feature, please navigate to Theme Options → Speed Optimization section.

    Should you have any further questions or require additional assistance, please do not hesitate to reach out.

    Best regards,
    The 8Theme Team

    Avatar: Abhinandan
    Abhinandan
    Participant

    Thanks for the support! My topic “Remove loading=”lazy” from Product Page Hero Image in XStore Theme” has been successfully resolved.

    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff

    Dear Abhinandan,

    Thanks for being part of our WordPress & WooCommerce community!

    We’re happy we could assist you. Your feedback truly matters — it helps us make XStore better, faster, and more reliable with every release.

    Together, we’re shaping a better WooCommerce experience for everyone.

    Topic closed.
    The 8Theme Team

The issue related to '‘Remove loading=”lazy” from Product Page Hero Image in XStore Theme’' has been successfully resolved, and the topic is now closed for further responses