Lazy Load attribute is being ignored in Liquid rendering

Topic summary

Images are being forced to load with loading=“lazy” even when Liquid sets loading: “eager” on image_tag.

  • In the Empire theme, specifying loading: “eager” still outputs loading=“lazy” across all images. Since Liquid renders server-side, the unexpected change pointed to client-side modification.

  • Resolution: The original poster found a third‑party script (added previously) that was overriding image attributes and forcing lazy loading. Removing/disabling that script resolved the issue.

  • Current status: Another participant reports the same symptom in the Dawn theme (product thumbnails remain loading=“lazy”), sharing screenshots of the DOM. No solution is provided for this second case within the thread.

  • Notes/terms: The HTML loading attribute controls when images load—“eager” loads immediately; “lazy” defers until near the viewport.

Outcome: Resolved for the first case (cause: third‑party script). The second case remains open/unresolved.

Summarized with AI on December 30. AI used: gpt-5.

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