Support high-variant products

Themes have historically used the Liquid API to load all of a product's variants when rendering a product. However, with the introduction of increased variant limits, this approach is no longer performant. The performance impact can be even more significant for combined listing products, since they can far exceed the increased product variant limit. You must therefore make several changes in order to support these features.

In this guide, you'll learn how to update your theme to support products with a high number of variants. We have also provided a branch of the Dawn theme that incorporates these changes and may be used as a reference.

The key changes that must be made are in how the theme renders option values and loads option value availability.