1

Should I minify/gzip my Jquery with my other scripts on my page, or use Google CDN for Jquery & JQuery UI and gzip my own stuff.

From what I can see its more likely to be faster to deliver from Google and there is a better chance the files will be cached already on the users machine, however its a couple of extra http request and at least I know it will always be available.

sth
  • 222,467
  • 53
  • 283
  • 367
Clawg
  • 349
  • 2
  • 4
  • 18

1 Answers1

2

You got it right. For widely-used librairies, using Google CDN is a good idea:

  • uses less bandwith on your server
  • resources availability is great
  • servers location is good too (it's a CDN after all!)
  • like you said, better chances these resources will be cached already on the user's side

The only downside:

So the anwser is "use Google CDN".

Brian Clozel
  • 56,583
  • 15
  • 167
  • 176