Is graceful degradation in the absence of JavaScript still useful?

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

    If you don't want the page to work when Javascript is off then just have that be the message in html, and if javascript is on, by using unobtrusive javascript you can get rid of that message and make visible the rest of the application.

    Depending on what you write for, in terms of javascript version, you may need to degrade if the browser the user has doesn't not have the latest version, so gracefully handling that is also important.

提交回复
热议问题