49 posts
  • Has been part of the Envato Community for over 6 years
  • Has sold $100+ on Envato Market
  • Has collected 1+ items on Envato Market
  • Sells items exclusively on Envato Market
JordanK says

I was just watching Jeffrey Way’s excellent tutorials on jQuery and I noticed he said that we should be linking to the jQuery file hosted on google apis. However, when I view source on the live previews of templates the jQuery file is always linked locally. Is there some requirement for file submission here that requires that jQuery be included in the download if it is used or is there another reason why others are linking to a local copy?

230 posts
  • Has collected 1+ items on Envato Market
  • Sells items exclusively on Envato Market
  • Has been part of the Envato Community for over 5 years
  • Located in United States
Meshach says

Nope, link to it from a CDN , more likely it will be in the users browser cache. ;)

2023 posts Review Manager
  • Has referred 10+ members
  • Has sold $5,000+ on Envato Market
  • Has collected 50+ items on Envato Market
  • Member of the Envato Team
+12 more
jremick Envato team says
92 posts
  • Has been part of the Envato Community for over 5 years
  • Has collected 1+ items on Envato Market
  • Sells items exclusively on Envato Market
  • Located in United States
Toushi says

I don’t know, I don’t trust the cloud. I would much rather have a local version. Makes me feel secure.

2023 posts Review Manager
  • Has referred 10+ members
  • Has sold $5,000+ on Envato Market
  • Has collected 50+ items on Envato Market
  • Member of the Envato Team
+12 more
jremick Envato team says
  1. Google’s hosted version is probably going to be more reliable than a local version.
  2. Most visitors will most likely already have Google’s version of jQuery cached and won’t even need to load it.
  3. Using the one hosted with Google is about as fast as it gets.
  4. The cloud isn’t as unreliable or unsecure as most people think. ;-)

Hope this helps. :-)

49 posts
  • Has been part of the Envato Community for over 6 years
  • Has sold $100+ on Envato Market
  • Has collected 1+ items on Envato Market
  • Sells items exclusively on Envato Market
JordanK says

Thanks everyone for the replies :) I wasn’t really worried about the reliability of google’s hosting but more with whether ThemeForest had some rule that required the author to include the file locally with the files for download. But after checking some more template sources it seems like there isn’t one so I’ll be using the CDN .

92 posts
  • Has been part of the Envato Community for over 5 years
  • Has collected 1+ items on Envato Market
  • Sells items exclusively on Envato Market
  • Located in United States
Toushi says
  1. Google’s hosted version is probably going to be more reliable than a local version.
  2. Most visitors will most likely already have Google’s version of jQuery cached and won’t even need to load it.
  3. Using the one hosted with Google is about as fast as it gets.
  4. The cloud isn’t as unreliable or unsecure as most people think. ;-)
Hope this helps. :-)

I really don’t like the cloud, because it isn’t under my control. Google could decide to press ads onto my site with that javascript, very unlikely but you see? I don’t even trust amazon s3. I really don’t think a user is going to notice a few milliseconds to download a library.

But you know for those that can trust a huge monolithic company, the benefits can be good.

78 posts
  • Has been part of the Envato Community for over 5 years
  • Located in Australia
  • Has been a beta tester for an Envato feature
  • Has collected 1+ items on Envato Market
+1 more
fredwu says
I really don’t like the cloud, because it isn’t under my control.

Do you also grow your own food? ;)

2529 posts
  • Has been part of the Envato Community for over 6 years
  • Has referred 10+ members
  • Has sold $40,000+ on Envato Market
  • Interviewed on an Envato blog
+11 more
JeffreyWay says

Google’s hosted version is probably going to be more reliable than a local version.

Big +1 to this. Use the CDN .

1148 posts
  • Has referred 1+ members
  • Has sold $1,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 10+ items on Envato Market
+3 more
fillerspace says

Use the CDN . Another benefit is that most browsers limit the number of concurrent connections to a given host to just 2. So if one connection to your web server is tied up serving jQuery, it is not serving up your images and text.

by
by
by
by
by
by