Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GS 3.1 and jQuery
#12
Quote:If a CDN is required, why use Google instead of jQuery's own (code.jquery.com) ?

I had the same question once and I got this answer which I think is quite reasonable:

because Google's server are spread around the world and it is quite reasonable that the CDN (the distributed code repository server) is near to the visitor's place

if you load from jquery.com, it will have the same effect as if loading locally from your server

imagine your server is in Germany, the visitor sits in Mongolia
It is obvious that a google CDN server is nearer to Mongolia than your server
so the script will load faster

Cheers, Connie
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply


Messages In This Thread
GS 3.1 and jQuery - by hameau - 2012-01-19, 03:57:42
GS 3.1 and jQuery - by mvlcek - 2012-01-19, 04:17:50
GS 3.1 and jQuery - by ccagle8 - 2012-01-19, 05:02:28
GS 3.1 and jQuery - by mvlcek - 2012-01-19, 05:19:31
GS 3.1 and jQuery - by Connie - 2012-01-19, 18:40:58
GS 3.1 and jQuery - by Divita - 2012-01-19, 22:32:29
GS 3.1 and jQuery - by marrco - 2012-02-09, 20:41:15
GS 3.1 and jQuery - by n00dles101 - 2012-02-09, 23:13:42
GS 3.1 and jQuery - by eatons - 2012-02-10, 02:03:18
GS 3.1 and jQuery - by hameau - 2012-02-22, 03:22:52
GS 3.1 and jQuery - by marrco - 2012-02-22, 22:57:42
GS 3.1 and jQuery - by Connie - 2012-02-23, 01:59:27
GS 3.1 and jQuery - by gugu - 2012-03-11, 11:11:05



Users browsing this thread: 1 Guest(s)