News for hackers. Stuff that matters.
Re:Tell HN: Catalog of JavaScript libraries and CSS resource... by shrike on Sunday February 28, 2010 @07:04PM (#1157727)
Is it really faster? I always assumed that the additional client side DNS lookup would eliminate the increased bandwidth advantage that the CDNs have. Anybody know if anyone has A/B tested this?
Re:Tell HN: Catalog of JavaScript libraries and CSS resource... by rimantas on Monday March 01, 2010 @04:28AM (#1158406)

  I always assumed that the additional client side DNS lookup
  would eliminate the increased bandwidth advantage that the
  CDNs have
CDNs offer a bit more than bandwidth advantage. First, if you have visited a site which used one of these CDNs already it most likely means that your browser won't even send a request for the resource (if CDN sets expire time into the future). Second, even if this will be the first request for a resource it helps to work around the "connections per hostname" limitation in browsers. Let's say your browser allows 4 connections you will be able to fetch four resources in parallel. Using CDN (with a different hostname) allows you to circumvent that. Then your are limited only by total number of connections browser allows and those numbers differ by order of magnitude: 2(IE7) to 6 (IE8, lates FF and Chrome versions) connections per hostname vs. 20 (Opera) to 60 (IE, Safari, Chrome) total connections.

Check out http://www.browserscope.org/ — it may give some ideas why Chrome is so fast :)

Re:Tell HN: Catalog of JavaScript libraries and CSS resource... by sh1mmer on Monday March 01, 2010 @01:04AM (#1158171)
Yahoo performance guidelines advise 3-4 domains per site.

http://yuiblog.com/blog/2007/04/11/performance-research-part...