from Hacker News

How fast is apple.com?

by leak on 10/24/12, 8:04 AM with 71 comments

  • by mjs on 10/24/12, 9:15 AM

    Concatenating JS doesn't necessarily make things faster, since (as the article mentions) modern browsers will download up to 8 assets in parallel. If JS is delivered separately, the browser doesn't have to wait for all of it to be downloaded before parsing and executing any of it--they can be parsed (and potentially executed) in parallel.
  • by redguava on 10/24/12, 8:32 AM

    "External JavaScript files in <head> – All of those JavaScript files nested inside the <head> tag, further delaying the start of page rendering."

    Sometimes the head is the best place to put the javascript. I didn't look into what javascript they are loading there, but there are times the user experience is improved by it.

  • by lelf on 10/24/12, 12:51 PM

    And they didn't tell anything about what apple did to make it fast. About this for instance

      Betty:~ lelf$ dig www.apple.com
    
      […]
    
      ;; ANSWER SECTION:
      www.apple.com.		1434	IN	CNAME	www.isg-apple.com.akadns.net.
      www.isg-apple.com.akadns.net. 21 IN	CNAME	www.apple.com.edgekey.net.
      www.apple.com.edgekey.net. 21234 IN	CNAME	e3191.c.akamaiedge.net.
      e3191.c.akamaiedge.net.	20	IN	A	23.32.109.15
    
      […]
    
    (If you really don't understand: http://en.wikipedia.org/wiki/Akamai_Technologies http://en.wikipedia.org/wiki/Content_delivery_network)

    EDIT: formatting, links

  • by faizanaziz on 10/24/12, 8:55 AM

    Would really prefer if you make all the changes how much improvement can be seen. This would put into perspective what the optimisation means.
  • by georgespencer on 10/24/12, 10:25 AM

    Question: have the average file-sizes of websites gone up proportionately to bandwidth increases? It seems to me like bandwidth has increased enormously, but filesizes have capped between 600k–1 megabyte. Shaving tenths of seconds off pageloads might not be as important as improving the speed of render.
  • by morgo on 10/24/12, 2:43 PM

    I think the author merged in two terms of his analysis of performance that are really separate:

    - Response Time (how long does it take per task) - Throughput (how many tasks can we complete per N)

    For some of us, getting better responses means in-and-out quicker and so its easier to serve more throughput. For apple, they have plenty of capacity, so new product launches aren't really a motivation to improve response. They will we able to support that volume anyway. The motivation would be to improve user experience.

  • by growt on 10/24/12, 9:33 AM

    Well, zoompf.com takes a minute to respond at the moment. So maybe they're not the ones to judge.
  • by codeka on 10/24/12, 12:32 PM

    For me, the most noticeable thing is the time it takes to load that enormous .png file. It's only 500KB but it still took 2 or 3 seconds to load for some reason.
  • by rorrr on 10/24/12, 11:39 AM

    Ironically, Google Pagespeed tells us this about zoompf.com:

    High priority

        Compressing the following resources with gzip could reduce their transfer size by 235.5KiB (72% reduction).
        Compressing http://zoompf.com/js/jquery-ui.min.js could save 142.7KiB (74% reduction).
        Compressing http://zoompf.com/js/jquery.min.js could save 62.5KiB (66% reduction).
        Compressing http://zoompf.com/wp-content/themes/NewZoompf/style.css could save 24.9KiB (77% reduction).
        Compressing http://zoompf.com/js/animations.js could save 4.0KiB (75% reduction).
        Compressing http://zoompf.com/.../wp-page-numbers.css could save 1.4KiB (73% reduction).
    
    Medium Priority

        The following cacheable resources have a short freshness lifetime. Specify an expiration at least one week in the future for the following resources:
        http://zoompf.com/images/background_pages.png (expiration not specified)
        http://zoompf.com/images/clipboard.png (expiration not specified)
        http://zoompf.com/images/handles.png (expiration not specified)
        http://zoompf.com/images/pages.png (expiration not specified)
        http://zoompf.com/images/report.png (expiration not specified)
        http://zoompf.com/images/streak.png (expiration not specified)
        http://zoompf.com/js/animations.js (expiration not specified)
        http://zoompf.com/js/jquery-ui.min.js (expiration not specified)
        http://zoompf.com/js/jquery.min.js (expiration not specified)
        http://zoompf.com/.../wp-page-numbers.css (expiration not specified)
        http://zoompf.com/wp-content/themes/NewZoompf/style.css (expiration not specified)
        http://zoompf.com/.../freedownload.jpg (expiration not specified)
        http://zoompf.com/.../freeperformancescan.jpg (expiration not specified)
        http://zoompf.com/.../logo-disrupt.jpg (expiration not specified)
        http://zoompf.com/.../logo-virgin-america.png (expiration not specified)
        http://zoompf.com/.../social-icons-32.png (expiration not specified)
        http://zoompf.com/.../video-icon.png (expiration not specified)
    
    They basically don't follow their own advice. Credibility -> toilet.
  • by jasongaya on 10/24/12, 12:56 PM

    what it this?? some one make spam here.
  • by anonymouz on 10/24/12, 12:26 PM

    I'm using the RequestPolicy addon for Firefox (I realize I'm in a tiny minority...). When visitng a website that uses domain sharding for the first time, that means I have to allow cross-site requests to the other domains.

    My plea to web-admins: Try to at least make the names of the shards recognizable. I've seen sites where the domain is essentialy "mynewspaper.com" and it needs data from "xac1h139a.com" to display correctly. Now go find the right domain to allow within the dozens of cross site requests that such sites are often using...

    Edit: This is a comment on his suggestion to use domain sharding. His site is fine.