4 ms·
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 i
by jfaucett 14y ago
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.
- Rygu 14y agoGood 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.
- alexchamberlain 14y agoI agree; the correct fallback is to load the webpage the "traditional" way.
- jfaucett 14y agoI'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.