html5 - How Does Github Do pushState Without Hash Tags? -


i've been researching best way utilize html5's history api aka psuhstate proper fallback html4 browsers.

github uses history api tree browsing (the following link example, not library github uses):

https://github.com/browserstate/history.js/

what can't figure out how handle functionality html4 browsers such firefox 3.5?

i've looked at, specifically, history.js (linked above) handle sort of thing. requires hash # implementation html4 browsers i'd avoid.

if visit github , browse directory tree using html4 browser, looks identical html5 browser (the url state, is).

if disable javascript in ff3.5, url looked this:

https://github.com/browserstate/history.js/tree/master/tests

now looks this:

https://github.com/browserstate/history.js/tree/a32e91aa1fe5909a29abb690a37f6c129e98068e/tests

any thoughts?

github uses http://pjax.heroku.com/

for browsers don't support pushstate degrades normal old boring full-page-load behaviour.


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -