49 posts
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 5-6 years
  • Sold between 100 and 1 000 dollars
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
  • Exclusive Author
  • Has been a member for 5-6 years
  • Bought between 1 and 9 items
  • United States
Meshach says

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

2016 posts Review Manager
  • Envato Staff
  • Has been a member for 5-6 years
  • Attended a Community Meetup
  • Australia
  • Beta Tester
  • Contributed a Blog Post
  • Contributed a Tutorial to a Tuts+ Site
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Sold between 5 000 and 10 000 dollars
+7 more
jremick Staff says
92 posts
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 5-6 years
  • 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.

2016 posts Review Manager
  • Envato Staff
  • Has been a member for 5-6 years
  • Attended a Community Meetup
  • Australia
  • Beta Tester
  • Contributed a Blog Post
  • Contributed a Tutorial to a Tuts+ Site
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Sold between 5 000 and 10 000 dollars
+7 more
jremick Staff 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
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 5-6 years
  • Sold between 100 and 1 000 dollars
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
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 5-6 years
  • 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
  • Australia
  • Beta Tester
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 4-5 years
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
  • Attended a Community Meetup
  • Author had a Free File of the Month
  • Blog Editor
  • Bought between 50 and 99 items
  • Contributed a Tutorial to a Tuts+ Site
  • Envato Staff
  • Exclusive Author
+8 more
JeffreyWay Moderator says

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

Big +1 to this. Use the CDN .

1021 posts
  • Referred between 1 and 9 users
  • Sold between 1 000 and 5 000 dollars
  • Has been a member for 4-5 years
  • Bought between 10 and 49 items
  • Exclusive Author
  • Microlancer Beta Tester
  • United States
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