Closed yoyurec closed 1 year ago
No, The section will only "catch" scripts injected via the ScriptTag API.
I am not sure how that app is adding the script. I assume they modify the template via the Asset API. You could probably use {% capture %} and create your own load logic in that case.
Somehow in Development stores (https://shopify.dev/docs/themes/tools/development-stores) apps throws their scripts not to sHopify object, but to HTML in a "classic way" via
<script src="..."
🤔For example Accessibily - https://apps.shopify.com/accessibly-app
Issues:
How to block/postpone loading apps in this case? Is it possible to update your optimizator somehow?