Should you design websites that require JavaScript in this day & age?

后端 未结 30 1081
醉酒成梦
醉酒成梦 2021-01-11 11:04

It\'s fall of 2008, and I still hear developers say that you should not design a site that requires JavaScript.

I understand that you should develop sites that degra

相关标签:
30条回答
  • 2021-01-11 11:24

    As you said, demographics. The web is expanding onto devices that doesn't have very much power, for instance cellphones. If your site is usable without javascript, Opera Mini will likely show your site without any problems.

    0 讨论(0)
  • 2021-01-11 11:26

    It's reasonable to design sites that use JavaScript but it is not safe to assume that all clients have support for Javascript and therefore it is important that you provide a satisfactory experience even when JavaScript is not available

    0 讨论(0)
  • 2021-01-11 11:26

    It's the 21st century. People not permitting JavaScript need to exit the last millennium, posthaste. It's a mature, widely used, and very useful technology that is one of the foundations of the recent expansion in useful web services.

    0 讨论(0)
  • 2021-01-11 11:27

    Well, it depends on your userbase. If you know that people will be using your site from mobile devices, it's good to have unobtrusive JavaScript. However, if you're trying to appeal to a tech-savvy crowd, don't bother with it.

    However, if you're appealing to a crowd that may be using screen readers (blind people), I'd highly suggest using WAI-ARIA standards. Dojo's widget system has full support for this, and would be a great and easy way to do it.

    Anyway, in most cases, you don't need unobtrusive JavaScript. Most people who have JavaScript disabled are either using a smartphone, using Lynx, or have NoScript installed. It's enabled by default in all the major browsers, so you shouldn't have to worry.

    Lastly, it's good to at least have some unobtrusive JavaScript. <noscript> tags are your best friend. For example, one may want to replace a widget that draws rating stars with text. Example using dojo:

    <div dojoType="dojox.Rating" stars="5" value="4"></div>
    <noscript>4/5</noscript>
    
    0 讨论(0)
  • 2021-01-11 11:28

    it's not about browser capability, it's about user control. People who install the noscript plugin for firefox so they don't have to put up with punch-the-monkey garbage ( the same problem that inspired stack overflow) will not allow your web site to do anything non-static until they trust you.

    0 讨论(0)
  • 2021-01-11 11:29

    I agree with the majority of the stackoverflow respondents. JavaScript has matured and offers an "extra" level of functionality to a webpage, especially for forms. Those who turn off cookies and JS have likely been bitten while surfing in dangerous waters. For the corporate power users that pay my way either in B2B or retail sites, JS is a proven and trusty tool. Until something better comes along (and it will) I'm sticking with JS.

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