Shopify / Shopify/theme-tools

Theme blocks optimisations

Open
#882 4 comments 0 reactions 1 assignee View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
TypeScript
Stars
234
Forks
92
Avg merge
1d 3h
Merged PRs (30d)
6

Description

1. Not able to not render the theme block element when no blocks are added.
I'd like to check e.g. {{ block.size }} or something like this to be able to ditch the render of the block (e.g. groups) to avoid dom rendering.

Image

2. Not able to limit the amount of blocks that can be added.
Add support for something like "max_blocks" or "limit" to prevent to much blocks.

Image

Checklist

  • I have checked and made sure that the proposal adheres to this plugin's principles

Additional context
Theme blocks are super powerful and really pleasant to work with, but it would be even better if is could a bit more flexible.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.