On 13 March 2012 17:31, Ary Manzana <a...@esperanto.org.ar> wrote: >> >> Ideally, you don't have to detect for javascript, you just have to >> *shock horror* code to web standards. >> >> -- >> James Miller > > > But the non-javascript version is a worse user experience, and it's less > efficient. Why not make it well from scratch?
Because my way works for everybody, and well for people with javascript. Your way eliminates everybody without javascript. It is barely any extra work to set it up this way (all the logic you had to do anyway, just have to think about it better), and 99% of people get the exact same experience, and 1% still get to use your site. Everybody wins. This isn't some JS vs NoJS debate, this is JS-only vs Progressive Enhancement. And for the record, GMail has a HTML-only version, and most of the other products work, if with reduced functionality, without javascript. I just tested search, it worked fine. -- James Miller