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.
[ Parent
| on HN ]
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.
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.