Using AJAX/HTML5 for navigation

🕦︎ - 2012-04-29

Video Recently it has become all the rage to use AJAX/HTML5 for navigation: instead of letting the browser fetch a page from scratch, a part (or all the content - I am looking at you, pjax) is fetched via AJAX and the URL is manipulated via the new pushState functionality introduced in HTML5.

While it is a very cute trick, it also demands a lot of the website developer to make it work right. Browsers have been through roughly two decades of evolution by now - do you think you can re-implement core browser behaviour in a couple of lines of Javascript?

If github can't, chances are you can't either. So checkout out why you should not do it.

I would love to be proven wrong. Leave a comment.

Update: Oh my gawd, even the new bobdylan.com uses this horrible abomination of a bad idea!

Add comment

To avoid spam many websites make you fill out a CAPTCHA, or log in via an account at a corporation such as Twitter, Facebook, Google or even Microsoft GitHub.

I have chosen to use a more old school method of spam prevention.

To post a comment here, you need to:

¹ Such as Thunderbird, Pan, slrn, tin or Gnus (part of Emacs).

Or, you can fill in this form: