Addend lazy load to the images in the product description

Shopify Partner
9 0 0

Hi

 

In my product description, I added some tests and a few Images.  Since I separate the image and text with | . I split it in two veriabel. 

            {%- if product.description contains '[ship_icons]' -%}
              {%- assign first = description | split:'[/ship_icons]' | first -%} 
              {%- assign ship_icons = first | split:'[ship_icons]' | last -%}                
              <div class="row">
                <div class="ship_dev">
                  {{ ship_icons }}
                </div>
              </div>
            {%- endif -%} 
 
{{ ship_icons }} contains multiple image. I want to get the src of each image so that I can use lazy load for all the images. How can I do that?
0 Likes