mirceapiturca / Sections

Shopify sections for everyone. Tooltips, FAQ, Quiz, and App Performance
https://sections.design
MIT License
179 stars 85 forks source link

Development stores - apps injection #21

Closed yoyurec closed 1 year ago

yoyurec commented 1 year ago

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 image

Issues:

How to block/postpone loading apps in this case? Is it possible to update your optimizator somehow?

mirceapiturca commented 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.