Request to Disable Lazy Load and Remove data-src Attribute from Images

  • Unknown's avatar

    Unable to Remove data-src Attribute – Lazy Load Still Active After Disabling Everything

    Hello,

    I’m facing an issue with image lazy loading on my WooCommerce site and I cannot find where it’s coming from.

    My goal is to completely disable lazy loading and remove the data-src attribute from product images. 🔹 My Setup

    • WordPress site
    • WooCommerce active
    • Hosting: Hostinger with CDN enabled
    • All optimization / cache / lazy-load plugins are deactivated
    • I even switched to a default WordPress theme for testing

    🔹 The Problem

    Even after disabling plugins and changing the theme, my product images still output this HTML:

    <img src="https://example.com/wp-content/uploads/2020/03/image.jpg" class="wp-post-image" data-src="https://example.com/wp-content/uploads/2020/03/image.jpg" data-large_image="https://example.com/wp-content/uploads/2020/03/image.jpg" data-large_image_width="760" data-large_image_height="760" >

    I understand that data-large_image is normal for WooCommerce zoom/lightbox, but I cannot find the source of data-src.

    Important points:

    • It still appears after deactivating all plugins
    • It still appears after changing the theme
    • WordPress core normally uses loading="lazy", not data-src
    • Hostinger CDN does not seem to inject HTML

    So I’m confused about what is generating data-src. 🔹 What I Already Tried

    • Deactivated all plugins
    • Switched to a default theme
    • Cleared browser cache
    • Purged Hostinger CDN cache
    • Searched theme files for data-src
    • Checked JS files for lazy load logic

    But data-src keeps appearing in View Source. 🔹 What I Want

    • Fully disable image lazy loading
    • Remove the data-src attribute from WooCommerce product images
    • Understand what system (core / WooCommerce / cache / JS) is adding it

    🔹 My Question

    Where does data-src come from if no plugins and no theme lazy load are active?
    Is WooCommerce adding this internally now, or is it coming from cached HTML / CDN optimization?

    Any guidance on how to properly disable it would be greatly appreciated.

    Thank you.

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    That domain doesn’t excist

Log in or create an account to reply