News for hackers. Stuff that matters.
Re:Must-know url hash techniques (2011) by StavrosK on Friday November 02, 2012 @07:06AM (#4732050)
With pushState, isn't this now irrelevant (and, as it has always been, ugly)?
Re:Must-know url hash techniques (2011) by jfaucett on Friday November 02, 2012 @07:14AM (#4732077)
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.
Re:Must-know url hash techniques (2011) by Rygu on Friday November 02, 2012 @08:17AM (#4732245)
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.

Re:Must-know url hash techniques (2011) by alexchamberlain on Friday November 02, 2012 @09:02AM (#4732411)
I agree; the correct fallback is to load the webpage the "traditional" way.
Re:Must-know url hash techniques (2011) by jfaucett on Friday November 02, 2012 @04:22PM (#4734565)
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.