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

后端 未结 12 922
一整个雨季
一整个雨季 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:30

    As said before, it depends on your target audience.

    If I'm part of it, you want to make sure that your site works (if not ideally) on my phone, and that it gives me reason to turn Javascript on when I surf there with it off. Nobody expects full functionality with Javascript disabled, and anybody who uses their phone to access websites expects some issues, but you need to at least provide teasers. For a web store, make sure customers can see at least some merchandise anyway, even if they can't buy without Javascript.

提交回复
热议问题