Hacker News new | ask | show | jobs
by seunghomattyang 5093 days ago
This is slightly off-topic but does anyone know how pages on this site load so quickly? It's almost instantaneous on my computer.

Does it use something like this? http://alexmaccaw.co.uk/posts/async_ui

2 comments

You can check using the network tab in the webkit inspector, or firebug. I don't see any async loading.

The html pages have this header:

    Transfer-Encoding:chunked
This means the html is streamed. The response on the sever-side is near-instant, only being hit for DNS the first time, and just the round trip latency the second. Due to the streaming, and the CSS being included at the top, the css is loaded super fast, in parallel with the html. In less than 100ms (for me), most things required to render the page are loaded up.
We're using Octopress (http://octopress.org/)