Back to Developer changelog

New Liquid section properties and default lazy loading for image tags

Themes

Effective September 18, 2023

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.