Developer changelog

Subscribe to the changelog to stay up to date on recent changes to Shopify’s APIs and other developer products, as well as preview upcoming features and beta releases.

Get updates by RSS

New Liquid section properties and default lazy loading for image tags


We've added default lazy loading for the image_tag when it occurs in sections further down the page.

We've also added new section properties so you can customize this behavior as well as fix other web performance issues dependent on layout position:

  • section.index - the 1-based index of a section within its location
  • section.index0 - the 0-based index of a section within its location
  • section.location - the location of the section (e.g., template, section group type, etc.)

You can now fix performance anti-patterns like lazy loading images above the fold and layout shifts due to async CSS loading without depending on section settings.

Learn more about the new image_tag behavior and how to use the new section properties.