Question

After reading thru stackoverflow responses, I am convinced that I have to use a CDN. But which one to use is my concern.

I searched on the Net and couldn't find any info comparing the stats of using Google CDN or Amazon CloudFront.

Please share your experiences regarding the same.

Was it helpful?

Solution

Check this out

6,953 reasons why I still let Google host jQuery for me

If you still not convinced, check out google trends

Google CDN vs Amazon Cloudfront

as of now, the ratio is 4:1

OTHER TIPS

I'd just like to point out that adoption is an issue here, because if a browser has already visited a site using jQuery via a CDN, it could result in a !pre-existing cache of jQuery! even when they're loading your site for the first time! Which is, of course, the best case scenario.

With that in mind, I have to recommend Google's CDN, for the increased likelyhood of previous exposure.

I found this article - CDN performance: Downloading jQuery from Google, Microsoft, and Edgecast CDNs

The author just mention there are some factors need to consider

  1. User Location <--> internet speed
  2. Widely Used CDN is BETTER <--> Been Cached Already
  3. the Reliability of the CDN

So, according to these factors I'll chose the widley used CDN in my region.

It's comparing apples and oranges. Cloudfront doesn't have a public CDN for jQuery, it would be cached from your origin server or bucket. The Google CDN, on the other hand, is a public CDN and is more advantageous since many users would have jQuery cached.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top