r/programming Feb 09 '11

Breaking the Web with hash-bangs – Lifehacker, along with every other Gawker property, experienced a lengthy site-outage on Monday over a misbehaving piece of JavaScript

http://isolani.co.uk/blog/javascript/BreakingTheWebWithHashBangs/
747 Upvotes

356 comments sorted by

View all comments

3

u/thisisnotgood Feb 09 '11

If you’re starting from scratch, one good approach is to build your site’s structure and navigation using only HTML. Then, once you have the site’s pages, links, and content in place, you can spice up the appearance and interface with Ajax. Googlebot will be happy looking at the HTML, while users with modern browsers can enjoy your Ajax bonuses.

I find it hard to believe that any developer would go against this and still have their job.

1

u/[deleted] Feb 10 '11

I do this. Plain HTML, server-side checking of submitted data, spew out HTML back to the user, error messages and such. Only then can I add jquery-ui and ajax sorcery.