Is graceful degradation in the absence of JavaScript still useful?

后端 未结 15 3590
南方客
南方客 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:11

    It is relevant and it will be relevant even after 10-20 years when javascript might be supported everywhere. making things work without javascript is important development technique because it forces you to keep things simple and declarative. ideally javascript should be used only to enhance experience but your website shouldn't depend on it.

    there is clear advantage from maintenance point of view to have most of the code in declarative format (html+css) and as little as possible in imperative (javascript).

提交回复
热议问题