Ask HN: Should a website work without JavaScript?
w3techs.com
w3techs.com
Some websites have applike functionality and so they need javascript. I am not talking about those. I'm talking about newspaper sites that preload a huge chunk of JS before displaying any text.
(The way you've asked this question is sub optimal.)
Should Government statutory information be accessible without JavaScript? Yes, without question.
Should something intrinsically 'app-like' - for example, a draggable map explored by panning, zooming and interacting with vector data - work without JavaScript? Much less compelling.
Ask yourself where your site falls between the two.
So all I think it's fair to expect is that 'content' is always accessible. That does include complex search interfaces in most cases - that's one situation where I think it is obligatory to put the extra legwork in as you're basically still a content site rather than a web app.
I think it far more likely to get a super basic alternative, almost a raw data version. Sadly the main driver for this is SEO rather than accessibility for disabled users.
And Google's a company with a bit of money to spend. A lot of smaller sites and startups are not operating with those kinds of margins, and must make choices about where to spend time and money. Doing a lot of work for a very small number of people may not be a good use of those resources.
It's up to the use case. What do you want to accomplish? What users do you care about or not?
Should a website use images? Sprites? Font icons? Tables or CSS positioning? Should a site have a dedicated mobile version? Should your site have an app? A twitter account? Should your site use flexible layouts? Should your site use any features unique to one browser? And so on. The only answers are opinions.
Ajax should ALWAYS degrade gracefully. Sites that use Ajax just to use it with no real benefit to the end user perhaps for a slight bandwidth savings are a particular irritation. It's often just a strong degradation of the user experience to make up for the deficiencies of your back end, or worse yet for no real reason other than it being the flavor of the decade.
Your landing page should work without javascript. Your blog shouldn't need javascript to display your content in useable form. I should be able to use your webshop (including content filters, shopping cart, checkout) without javascript, but payment widgets from external providers are a reasonable exception. Online office apps like Google Apps need javascript, but it would be great if one could at least view documents without it.
I know most people wouldn't even think they could disable Javascript on their phone or even know where to look in the first place, but there is always a chance that it could be disabled.
The most recent experience I had was when I disabled the Javascript on my iPhone 4s for a web accessibility course and forgetting to reenable it. Later I'm looking to find a place to eat with good reviews, and Yelp's mobile view would not load and gave me a lovely message to enable Javascript. I know it is not a wrapped in-app browser liked I mentioned before, but the app should at least give me a bare bones list at the end of the day.
But a website should at least appear without JavaScript. I've seen lots of websites that look empty or horribly distorted when JavaScript is disabled. That should not happen.
If a website - a blog - just displays some text, a raw/plain version can be provided along with it, not necessarily on the same web address.
When a website displays/formats/filters some data, an API can complement it.
But sometimes, a website is an app where no alternative representations would make sense. Then the answer is no.
It's all about needs, requirements, possibilities, and common sense.
1. Site analytics
2. Displaying ads
3. Fighting spam