javascript - Don't use Google-hosted CDN jQuery for Shopify - what's the alternative? -
Text after "div class =" itemprop = "text">
My Shopify theme (new standard) uses jQuery hosted by:
{ {'//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js' | Script_tag}} does not work in China - Research on stack overflow shows that content related to Google is often blocked by great firewalls, including stackoverflow.com itself
Can I point the above line in another jQuery script file? Or is there a better way for my Shopify site to be qualified in China?
Or can I simply download .js file and upload it to my Shopify account and look at it?
I have very limited knowledge of JS, so it appreciates that someone can tell any possible risk in doing so. Thank you.
You can refer it anywhere. If you can not host it, you can use Google instead, if you can host it by yourself, then this is the best option.
When it comes to commercial applications, it is always safe to avoid dependency in this way. When we pay the CDN other rely on non, it can be blocked or taken down, who knows.
Always use the local version for commercial applications.
Comments
Post a Comment