Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

With pushState, isn't this now irrelevant (and, as it has always been, ugly)?


Well, if you do not have to support older browsers, which I think a lot of webdevs still have to do, then I guess its probably irrelevant. But the history API implementations are (of course) different across browsers/platforms, so I'd recommend taking a look at history.js, if you want cross-browser RIA with good hashchange fallbacks.


Good one, didn't know about history.js!

I think the best pushState fallback is just allowing page reloads. Hashtags are probably just annoying and confusing for the user experience. Besides, there are other very effective ways to improve page load time.


I agree; the correct fallback is to load the webpage the "traditional" way.


I've always wished this worked w/out page reload :

  window.location.pathname = new_path;
maybe it would be a total spec hack and kills everything the internet stands for but still it'd make things a lot easier.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: