To make a neadless transition between the options, I want to ask, if there is a script I can implement which forces to load all picutres on the product page.
I already saved all pictures as webp to save data.
After some reasearch I found out, that the “800x800” is something you need to asign for liquid to chose the quality.
Iam sorry for that mistake, iam still learning.
How ever I generated some code from ai which expands the lazy load for all variants and product media, thats not the best practice but it works for my one product store.
{%- if template contains 'product' -%}
{%- if product.selected_or_first_available_variant.featured_image -%}
{%- endif -%}
{%- for media in product.media -%}
{%- endfor -%}
{%- endif -%}
{%- for variant in product.variants -%}
{%- if variant.featured_image -%}
{%- endif -%}
{%- endfor -%}
{%- for media in product.media -%}
{%- if media.media_type == 'image' -%}
{%- endif -%}
{%- endfor -%}