Is graceful degradation in the absence of JavaScript still useful?

后端 未结 15 3595
南方客
南方客 2021-02-20 02:45

When even mobile browsers have JavaScript, is it really necessary to consider potential script-free users?

15条回答
  •  执笔经年
    2021-02-20 03:18

    I'm going to have to make a case for the other side here. Peoples reasons for designing sites without javascript are largely idealistic. Given an enough time and money and the goal is achievable and will certainly open your website to the largest possible number of people. However in reality doing this will slow your development, increase the number of test cases that you have to deal with, and ultimately affect the quality of your application for those users that do use javascript.

    In my opinion it is perfectly reasonable to choose to make your site only compatible with js enabled browsers and tell those users that dont have it that they are missing out. This allows you to concentrate on creating rich content that the majority of users will be able to view.

    There are of course exceptions to this rule, but if you are looking to create a good website for the majority of users, or have a client who is after a flashy website with limited time or money then taking the decision that it is js enabled browsers only is a reasonable thing to do.

提交回复
热议问题