Is it worth it to code different functionality for users with javascript disabled?

后端 未结 12 954
一整个雨季
一整个雨季 2020-12-28 15:53

I\'m currently building a project and I would like to make use of some simple javascript - I know some people have it disabled to prevent XSS and other things. Should I...

12条回答
  •  情书的邮戳
    2020-12-28 16:42

    It depends on how much time you have to develop and maintain both solutions, and how much the non-javascript users are worth to you.

    My e-commerce site relies heavily on javascript, and in over a year and a half, I've not received a single complaint. In fact, I don't think I've seen a single visitor with javascript disabled in any of logs since I started. That doesn't mean they're not out there. It just means that either (a) they're a tiny percentage, (b) they're not interested in what I'm selling, or (c) both of the above.

提交回复
热议问题