Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add check for nested liquid loops #337

Open
darryn opened this issue Jul 1, 2021 · 1 comment · May be fixed by #719
Open

Add check for nested liquid loops #337

darryn opened this issue Jul 1, 2021 · 1 comment · May be fixed by #719
Labels
performance For fast themes

Comments

@darryn
Copy link

darryn commented Jul 1, 2021

There are instances where there are multiple liquid loops nested inside each other. These can clog the TTR.

Here is a bad example...

  {% for product in collection.products %}
    {% for tag in product.tags %}
      {% for variant in product.variants %}
        {% for collection in product.collections %}
        
        {% endfor %}
      {% endfor %}
    {% endfor %}
  {% endfor %}

Semi-related to the nested snippets logic.

@macournoyer macournoyer added the performance For fast themes label Jul 5, 2021
@macournoyer
Copy link
Contributor

Oh this is good Darryn! Thanks for the suggestion.

@Darhazer Darhazer linked a pull request Feb 25, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance For fast themes
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

2 participants