如若没有JavaScript您的网站的工作 [英] Should your website work without JavaScript

查看:144
本文介绍了如若没有JavaScript您的网站的工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在开发将会在互联网上被用于外部客户端的Web应用程序。我们需要支持的浏览器IE7是+和FF3 +。我们的一个要求就是我们使用AJAX尽可能。鉴于这种要求我觉得我们不应该满足用户没有启用javascript,但其他的球队不同意。

We're developing a web application that is going to be used by external clients on the internet. The browsers we're required to support are IE7+ and FF3+. One of our requirements is that we use AJAX wherever possible. Given this requirement I feel that we shouldn't have to cater for users without javascript enabled, however others in the team disagree.

我的问题是,如果在这个时代,我们应该要求,以迎合那些没有启用JavaScript的用户?

My question is, if, in this day and age, we should be required to cater for users that don't have javascript enabled?

推荐答案

这个问题来了,每周几次在这里,你有足够的代表,你应该知道这一点。你搜索?

This question comes up a couple times per week here, and you have enough rep you should know that. Did you search?

总之,这里的事情是,有谁可能有麻烦的JavaScript在公共互联网上有很多更多的用户比你想象的:

Anyway, the thing here is that there are a lot more users on the public internet who may have trouble with javascript than you think:


  • 移动浏览器(智能手机)往往有非常差或者有缺陷的JavaScript实现。这些往往会出现统计上的那些不要的支持javascript的一面,即使他们实际上没有。

  • 类似NoScript的事情正在变得越来越受欢迎,所以你至少应该有一个很好的初始页面为这些用户。

  • 如果您的客户是在美国GOVERMENT的任何方式的一部分,需要依法支持屏幕阅读器,它通常不这样做的JavaScript。

  • 索引网站时,谷歌和其他搜索引擎将无法运行脚本。你需要无JavaScript来的工作不够好,以允许对。

  • Mobile browsers (smartphones) often have very poor or buggy javascript implementations. These will often show up in statistics on the side of those that do support javascript, even though they in effect don't.
  • Things like NoScript are becoming more popular, so you should at least have a nice initial page for those users.
  • If your customer is in any way part of the U.S. Goverment, you are legally required to support screen readers, which typically don't do javascript.
  • Google and other search engines won't run your scripts when indexing the site. You need to work well enough without javascript to allow for that.

当然,你需要知道你的听众。你可能会做工作,为企业内部网,你的知道的是每个人的有JavaScript的(虽然即使在这里,我要说有也正是这些网站提供给不断增长的趋势未知/无限制的浏览器远程工作人员),或者你可能会建立盲人社区,在这里的没有人的有它的应用程序。在公共互联网的情况下,通常可以找出你的用户的约95%将支持它以某种方式(来源在下面的链接之一别人引用)。但这个数字并不高,因为它的声音。围着它转,如果你不支持你的JavaScript转走每20一个访问者。

Of course, you need to know your audience. You might be doing work for a corporate intranet where you know that everyone has javascript (though even here I'd argue that there's a growing trend where these sites are made available to teleworkers with unknown/unrestricted browsers), or you might be building an app for the blind community where no one has it. In the case of the public internet, you can typically figure that about 95% of your users will support it in some fashion (source cited by someone else in one of the links below). But that number isn't as high as it sounds. Turn it around, and if you don't support javascript you're turning away one visitor for every 20.

请参阅以下:

  • http://stackoverflow.com/questions/121108/how-many-people-disable-javascript
  • http://stackoverflow.com/questions/822872/do-web-sites-really-need-to-cater-for-browsers-that-dont-have-javascript-enabled>

这篇关于如若没有JavaScript您的网站的工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆