Curious about the new way YouTube is loading pages -


i've noticed when i'm watching video , click on logo or related video red progress bar (above logo) dashes across screen. @ same time there slight overlay "grey" out content fades in new page. fyi, url changes new url before progress bar , transition happens.

the div id of bar progress. looks kind of cool jquery ajax load changing pages. don't know.

enter image description here

youtube using html5 history api add , remove page urls history stack. results in url changing in address bar, , back/forward buttons working, while still loading page via js (ajax).

the easiest way implement api backwards compatibility @ point using history.js. backwards compatibility mean falling hash tag method older browsers not support html5 history api yet.

check out history.js demo!

i think twitter best known example of website using hashed urls. example twitter.com/#!/username has been common sight years. problem method hash tags client side, need js read them , serve proper content. non-js user clicking hashed url land on twitter's homepage.

beatport 1 of first major websites using html5 history technique way. soundcloud has implemented too. both sites needed html5 history badly, ensure audio playback while visitors browse through pages.


Comments

Popular posts from this blog

asp.net mvc 3 - Using mvc3, I need to add a username/password to the sql connection string at runtime -

kineticjs - draw multiple lines and delete individual line -

thumbnails - jQuery image rotate on hover -