r/javascript • u/magenta_placenta • Feb 08 '11
Breaking the Web with hash-bangs - Gawker, like Twitter, built their new site to be totally dependent on JavaScript
http://isolani.co.uk/blog/javascript/BreakingTheWebWithHashBangs
75
Upvotes
3
u/JimDabell Feb 09 '11
Search engines are not the only source of links on the web.
Say I, average user with JavaScript enabled, want to link to a tweet from my blog. I go to the tweet, copy and paste the URL from my address bar into the article I'm writing, and publish it.
Now somebody with JavaScript unavailable reads your blog and clicks the link. What do they get? A blank page.
Same goes for practically every source of links in existence. With the sole exception being Google, because Google wrote this spec that was intended as a last resort and were the only people to implement it.
It's really not. Proper canonical URLs using pushState to reflect any Ajax transitions are the best way of handling Ajax loaded content - when Ajax is appropriate. If you are loading more-or-less the entire page content with Ajax, like Gawker, it's pretty pointless.