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.
|2 hours ago|
|3 hours ago|