We’re working on a new app right now. To publish the app, we must follow Shopify’s standards and apply the theme app extension. The theme app extension has been successfully generated and reviewed. I also double-checked the theme app extension’s functionality.
Currently for each store, we generate a snippet in the theme utilizing Asset API to quickly load some kind of data at the storefront. This snippet contains the app settings data, which varies each Store. This is why we utilize theme snippet: to reduce the continual server hits.
Our question is this:
- How may this type of snippet be used in a theme app extension?
- A snippet folder is also included in the theme app extension, but how can we use it to create many snippets in the theme app extension utilizing the app? If this is the case, how can we use several snippets in the theme app extension Javascript file?