Is graceful degradation in the absence of JavaScript still useful?

后端 未结 15 3676
南方客
南方客 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.

    0 讨论(0)
  • 2021-02-20 03:19

    Yes.

    People can (and do) browse with javascript disabled. If your site will work without users having to explicitly enable javascript for you, that makes them happy.

    Exactly how relevant depends on your target audience, of course.

    0 讨论(0)
  • 2021-02-20 03:22

    It depends on who your target audience is. I have JavaScript turned off by default and turn it on when I know what the site's intent is.

    0 讨论(0)
提交回复
热议问题