Liquid objects: theme
Documentation says that the theme liquid object is deprecated. I would love to know the reason, but don’t expect to actually get an answer.
I think this Liquid object has become valuable as apps started using app embeds and theme app extensions.
The app we are working on creates an offer in the app backend, but we don’t know which theme the offer will be rendered on. We need to load theme specific elements and functions for ultimate theme compatibility.
Storing theme specific code for all themes (free + premium) in a single file and loading them on every page load is not ideal. Instead, I’d love to know which theme is currently being loaded (inside Liquid) and only load the compatibility file(s) for that theme.
I can definitely do this by identifying the theme via JS and then loading the files; but this delays the loading of the offer widget.
Is there any way to request Shopify to consider not deprecating this object and maybe even extending it with version, store id etc?
What type of topic is this
General discussion