I was checking my store speed and the following was a main factor in slowing the page load - How do I fix this?
Tell me about it. Pain in the a**e trying to figure it out, when they tell you what all the problems are but not how to fix them.
This is a problem with the first image on the âslideshow.liquidâ file..
You will need to open up the code editor, open one of the âSectionsâ files called âslideshow.liquidâ
after
{%- if block.settings.image -%}> {%- assign height = block.settings.image.width | divided_by: block.settings.image.aspect_ratio | round -%}
insert
{% if forloop.index == 1 %}> {{> block.settings.image> | image_url: width: 3840> | image_tag:> loading: âeagerâ,> height: height,> sizes: â100vwâ,> widths: â375, 550, 750, 1100, 1500, 1780, 2000, 3000, 3840â> }}> {% else %}> {{> block.settings.image> | image_url: width: 3840> | image_tag:> loading: âlazyâ,> height: height,> sizes: â100vwâ,> widths: â375, 550, 750, 1100, 1500, 1780, 2000, 3000, 3840â> }}> {%- endif -%}
This will exclude the first image (Above the Fold) from loading lazy and allow the rest to load when needed.. (lazy load)
Thank you for your reply. I am have no knowledge of coding so your reply is a help. I have done as you said and I will monitor the site performance. I done a gmetrix speed test and my site speed improved.
