Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hello,
I want to defer third-party codes to improve my site speed, and I came across a few solutions but they all say to use this line <script src="{{ 'file.js' | asset_url }}" defer="defer"></script>. But what if the file I want to defer isn't in the assets file. I tried to defer the files that impact my site speed, and it gives me this message:
So my question is, what should we replace "asset_url" with? since it doesn't exist in the assets folder?
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025