I'm implementing ajax navigation and I'd like to utilize the html5 history API, so I stumled upon History.js.
I'm not exactly sure how to go about using it and the documentation for it is not very good, nore are the examples.
I tried to mess with it...
$("a[href]:not(.no-ajax-navigate)").click(function(e){ e.preventDefault(); var path = $(this).attr('data-path');//this is "path/to/page" (clean url's) //so I got the path.. now what? pushState? }); I'm clueless as to what to do now.. thanks in advance!
update 1
I looked at the [source code that]@OneTrickPony commented](http://html5.gingerhost.com/new-york) that @OneTrickPony commented and I got it working. But it seems fire fire a popstate event on page load. Is this supposed to happen? My page basically fade in/out which is kinda annoying when you initially load (refresh) the browser.