It starts with saying "well, let's just render html on the client-side instead of on the backend". Suddenly you're in a new world of programming.
It starts with saying "well, let's just render html on the client-side instead of on the backend". Suddenly you're in a new world of programming.
It didn't last because, unsurprisingly, plain HTML loads renders a lot faster.
That said: XHR is a genuine change in the model. So too the leaps and bounds in bandwidth and computing power.
And JavaScript engines performances too.
What is your point? You write in italics that "plain HTML renders a lot faster" and then you contradict yourself.
Part of the confusion is that HTML is living a strange life as part document, part app platform. I mean if you compare HTML and JS to the fit-and-finish of a mid 90s platform it's a mess.
But, it's what we have.
I think it is more about do you want to figure out the html in JS or something else, and do you want to pay the bill to make the pages at home or lose some customers who don't have the power to do it themselves.
You can do what Twitter did. Allow some duplication and render html server-side on the first request.
They ain't no silver bullet: you have to decide where you want to invest your time.
http://www.tomshardware.com/news/google-googlebot-ajax-javas...
it renders each fragment to a file and serves that to the bots, right ?
careful to only serve these pages to bots tho
It's not as much pain as you would think, it's enough to just return some html. No css/js is needed.
Still, that's some additional work.
Probably worth reading this: http://productforums.google.com/forum/#!category-topic/webma...
They'll accept geo-targeted or mobile vs desktop optimised content, but everything else is a grey area.
Once of the reasons Gawker moved away from hashbangs is that they weren't well supported by Google, despite this being a "Google specification". Nick Denton, the founder of Gawker, has some interesting tweets about the use of hashbangs over the past few months:
Nick Denton: "Dip in uniques largely because of drop in Google refers. Pageviews (which are driven more by core audience) less affected." -- http://twitter.com/nicknotned/status/61152134929981440
Nick Denton: "Google does not fully support "hashbang" URLs. So we're eliminating them rather than waiting for Mountain View." -- http://twitter.com/nicknotned/status/61465859079671808
Nick Denton: "Yeah, I'd advise against hashbang urls. Will kill search traffic -- even if you abide by Google protocol." -- http://twitter.com/nicknotned/status/62595141927583745
So here's a high-profile failure of hashbangs when it comes to being indexed by Google. Which means if it's search indexability you want, hashbangs isn't it. The Google spec just isn't mature enough, or well supported by Google search itself.