Hacker News new | ask | show | jobs
by bobsy 4738 days ago
Looks awesome. Very useful.

How is this site made? It looks like changing pages are ajax transitions but the url is changing at the top? Could someone point me in the direction of how this is made please. Would be really interested.

4 comments

Without looking at the source, I would say it is using the History API introduced in HTML5.

Here is a nice article describing it: http://diveintohtml5.info/history.html

A simple example with source can be found here: http://html5demos.com/history

Thanks a lot. I have a seen a few sites like this and have been wondering. Sites using this feel like they load so much faster and more fluidly.
I'm not sure that it's the only reason why IE isn't supported, but currently no version of IE supports the history api, which is a bit of an annoyance if you aren't developing a site that you can block certain browsers from using.
HTML5 history.pushState