Hey there,
The ScriptTag resource can be used to load remote javascript onto a shop's storefront, which I think may interest you. However, this resource does not supply the hosting of that javascript code on Shopify.
Hey again,
I think that we might be misunderstanding each other. I'd recommend hosting your JS externally and then using the ScriptTag resource to register that JS on any shops that install your app. You could test this on a development store in order to confirm it works as you'd expect.
Also open to other community members' solutions to this - I know that creating a theme asset and calling that on the storefront is a viable solution as well, but I think that using a ScriptTag is better since it is automatically removed when an app is uninstalled.
Subject | Author | Latest Post |
---|---|---|
Subject | Author | Posted |
---|---|---|
an hour ago | ||
2 hours ago | ||
2 hours ago | ||
2 hours ago | ||
3 hours ago |
User | Count |
---|---|
257 | |
165 | |
134 | |
67 | |
39 |