Is graceful degradation in the absence of JavaScript still useful?

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

    Yes. Your web pages aren't just consumed by people: they're consumed by search engines, and crawlers, and screenscrapers. Most of those automatic tools don't support Javascript, and essentially none are going to generate UI events or look at deeply nested AJAX data. You want to have a simple static HTML fallback, if nothing else then so that your web pages are well indexed by the search engines.

    Forget the crazies who disable Javascript; think of the robots!

提交回复
热议问题