Lazy Load attribute is being ignored in Liquid rendering

Hello, I’m currently trying to have certain images in the Empire theme load eager, rather than lazy. One such issue is that our logo in the header is marked to load lazy, when I’d rather it load eager by default.

The liquid to create the logo is the following:


 
{{ block.settings.logo | image_url: width: 300 | image_tag: widths: "300,200,150,75", loading: "eager", alt: "COMPANY LOGO DESCRIPTION", class: "siteLogo"}}

I even included a comment because I thought I was going crazy with this being the output:


 
    

(I used placeholders for the URL, but you get the idea)

I have no idea why, but no matter what I do, the ‘loading’ attribute changes to lazy. Even with no attribute, it gets added. I’ve gone across all scripts on the store and there’s nothing modifying attributes. My understanding of Liquid/Ruby is that it would have to change before the server even sent the HTML doc. Debugging didn’t help either, as I tried to have the loading break upon attribute modification, but it never changes - it’s just always lazy.

This is actually happening to all images on the site, so is anybody else experiencing this issue, or have an idea if maybe an app could be causing this? I’m hoping for some help or suggestions on how I could track down the issue.

I solved this already. I found a third-party script that had been added by a previous developer that was making these changes!

hello

I am having a problem with lazy loading with my product images on the product page of dawn theme

i tried everything to remove lazy loading from product thumbnail image but it always show loading:lazy