Online store performance and site speed optimization
Hi,
I'm thinking about adding something like this to my product page instead of setting up variants, which usually generates 2 or 3 results always less than 20 and sometimes 0.
Do you think this will slow down my product page drastically?
{% assign group = product.handle | split: '-' | first %}
<select>
<option>
{% for product in collection['all'].products %}
{{ all_products[group].title | split: '|' | last }}
{% endfor %}
</option>
</select>
thanks
yes this will make some minor differences does use split two-time use one loop and set default selected as the index 0 else in item In select option
{% for product in collections.frontpage.products %}
{{ forloop.index0 }}
{% endfor %}
Are you ready to take your business to the next level? Look no further than the latest ...
By SarahF_Shopify Apr 15, 2024We’re keeping the ball rolling to make sure you’re always ahead of the game. So buckle ...
By JasonH Apr 8, 2024Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024