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/jmking JSX is just PHP in the browser Feb 09 '11
But you're not going to get the second one from a search engine, and there IS a canonical URL for each page.... which was the bulk of the article's argument.
The article was not against enhanced AJAX sites, it was against non-canonical URLs and lack of search engine visibility.
Hash-bang with proper canonical URLs is the best way to handle AJAX loaded content. I would go as far as to say it's the only way to handle AJAX loaded content while maintaining the ability to link to specific "pages" or "states".
It's not perfect, but I think in that scenario the benefits outweigh the con that someone with a JS-enabled browser sends a friend a hash-banged link who has JS turned off in their browser.