Better to combine & minify javascript or use Google CDN?
Posted
by jessegavin
on Stack Overflow
See other posts from Stack Overflow
or by jessegavin
Published on 2010-06-09T21:20:42Z
Indexed on
2010/06/09
21:32 UTC
Read the original article
Hit count: 224
I am building a site which currently uses javascript from several sources:
Group 1: Google Maps API v3 (hosted by Google)
Group 2: jQuery & swfobject (hosted on Google CDN)
Group 3: Several jQuery plugins and non-jquery javascript files (hosted on my server)
I am using Justin Etheredge's tool SquishIt to combine and minify all the javascript files that are hosted on my server (group 3).
I am wondering if the site would 'feel' faster to users if I were to host the files in (group 2) locally so that they can be combined with all the other files in (group 3) and requiring only one HTTP request for groups 2 & 3. This would mean that I don't get the benefits of the Google CDN however.
Does anyone have any advice on this matter?
© Stack Overflow or respective owner