Depending on the functionality you need, both could work. If you only want to load in a JS file then the script tag will work fine. In this case, it sounds like you will be relying more heavily on Shopify objects and may want to explore the Storefront API to gain access to the data you will need.
Vix | Developer Support @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Click Accept as Solution