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.