Live data from Hacker News

Ask HN: Is the web ready to require JavaScript?

news.ycombinator.com

1–10 of 21 posts

Ask HN: Is the web ready to require JavaScript?

#1
Until now, I have considered it an absolute requirement that websites will work even if the browser doesn't support JavaScript. Graceful degradation, progressive enhancement, and so on. The only exceptions have been sites specially targeted for iPads or similar cases.

But now, people I work with are making the claim that JavaScript can become a forced requirement for all future websites. In this world, if you're without JavaScript, you might only get a minimal, unstyled skeleton page via HTTP, so that search engines can index the URL and social sites can share it. Or even a blank page, if those things are handle by APIs.

The majority of the UI is then to be implemented with Backbone/Spine, Underscore templates and similar technologies. It will be fully HTML5 compliant, elegant and accessible, but it just won't work without JavaScript.

My question is, do you think the web is ready for this transition? Are there compelling reasons, other than just "historical principles", for this not to happen? Can we consider JavaScriptless users an increasingly ignoreable relic like IE6 users? Are there other key points to consider - are we throwing out some baby with the bath water?

Re: Ask HN: Is the web ready to require JavaScript?

#3

what kind of browser nowadays don't support javascript? I don't know about you but the idea just sounds totally foreign to me. I'm too busy worrying about what HTML5 features modern browsers support :P.

not to mention I can't even imagine the user experience drawbacks. your website would just suck in comparison to any competitor.

Re: Ask HN: Is the web ready to require JavaScript?

#4

what kind of browser nowadays don't support javascript? I don't know about you but the idea just sounds totally foreign to me. I'm too busy worrying about what HTML5 features modern browsers support :P.

Well the main issue isn't that browsers don't support Javascript, but that some people disable running scripts or have plugins like noscript that disallow scripting.

Re: Ask HN: Is the web ready to require JavaScript?

#5

what kind of browser nowadays don't support javascript? I don't know about you but the idea just sounds totally foreign to me. I'm too busy worrying about what HTML5 features modern browsers support :P.

Well the main issue isn't that browsers don't support Javascript, but that some people disable running scripts or have plugins like noscript that disallow scripting.

[deleted]

Re: Ask HN: Is the web ready to require JavaScript?

#6

what kind of browser nowadays don't support javascript? I don't know about you but the idea just sounds totally foreign to me. I'm too busy worrying about what HTML5 features modern browsers support :P.

Curl doesn't support JavaScript. Neither does wget.

If I'm on a netbook, tablet, or phone, your JavaScript will chew my battery. I don't want that.

I don't trust you. Don't take it personally; I don't trust most websites. I haven't signed your key, and you haven't signed mine. I am not okay with letting you execute code on my machine.

Your JavaScript sucks. Again, don't take it personally; it's a tricky and frustrating language with lots of pitfalls. However, you messed up, and now your script is busy-looping or eating bandwidth with endless AJAX. I'm blacklisting your script until you fix it.

These are just off the top of my head, BTW.

Edit: Spelling.

Re: Ask HN: Is the web ready to require JavaScript?

#8
In either case, your app should be written as a service which can be access by many different "clients" if necessary. Then you can go all hog wild with a WebGL version of your app, and someone else (an intern) can come in later and write a Web 1.0 version of the client-side.

Re: Ask HN: Is the web ready to require JavaScript?

#10

Less than 1% has JavaScript turned off. The answer to your question is the same as to if a website should support Netscape 3. I would say the answer depends on what the target audience is, what kind of site it is, and how much time it will save.

Right, when I was with Marriott we did extensive research of the subject. The numbers just don't add up. Now that I am on my own, I recommend to my clients that they take full advantage of the tools at hand. Butchering the development model to support less that 1% (it was a little higher when I was there around 1.5%) just cannot be justified. Further it is cheaper to build a clean modern code base and then route the non-JS traffic to a site built independent of the modern code base that supports non-JS client. The reality was that the business case could not be made to even spend the development effort to build out a non-JS site. It would have literally been cheaper to send ever non-JS user a new computer with a modern browser, than it would have been to spend the development effort to build the site. Graceful degradation to non-JS creates more complexity and increases the overall effort, when quantified that money is almost always better spent on a better returning effort like an IOS app or further features on the JS enabled site. Now days it is hard to make the numbers work to support a non-JS site. Personally, even if I had no other features to implement, I would spend the money saved from removing the complexity of graceful degradation, on color blind testing, site reader software testing for the blind or internationalization. All of which have better business cases than non-JS support.

While I am on the subject my group (the web) made the business case that having JSP and Javascript was redundant and added to the complexity and therefore the cost of development and maintenance. We where able to successfully transition away from back-end web frameworks two a pure JS/HTML/CSS front end. In doing so we where able to simplify our development model, which increased our defect resolution time as well as our new feature development time.

Post reply on HN