Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Should I host my own Javascript {{ "javascript.js" | asset_url }} in my theme or is it better to use the javascript library cdn?
Solved! Go to the solution
This is an accepted solution.
I would load as many assets as you can in your own theme, that will cut down on the number of different 3rd party resources needed, this way your code loads directly from your site's server (Shopify CDNs).
If you want to dive into optimizing 3rd party scripts this is a good article: https://developers.google.com/web/fundamentals/performance/optimizing-content-efficiency/loading-thi...
This is an accepted solution.
I would load as many assets as you can in your own theme, that will cut down on the number of different 3rd party resources needed, this way your code loads directly from your site's server (Shopify CDNs).
If you want to dive into optimizing 3rd party scripts this is a good article: https://developers.google.com/web/fundamentals/performance/optimizing-content-efficiency/loading-thi...
Thank you for the reply
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn 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, 2025