Hello, I have tried to improve product image loading speed in product-images.liquid (Out of the Sandbox Turbo theme). I found some instructions how to change loading from lazy to eager, but it did not quite work.
Below is the current code, which has following recommendation notes:
Use the native loading=“lazy” attribute instead of lazysizes
Improve performance by using loading=“eager” or loading=“lazy”
I changed the code based on the instructions I found to this:
Otherwise ok and the recommendation notes were gone, but after saving this code the poduct variant image was not changing anymore hence when I chose another product variant it did not update the product image accordingly.
Can someone tell me which part of the code would fix this so that variant images would continue to change?
Thanks, Pauliina
