Web development: should we think about users who disable JavaScript?

Web development: should we think about users who disable JavaScript?

The JavaScript language is responsible for many of the most surprising features of the current Web, such as the effect of parallax or animations on images and blocks of text (for example, the ones we see in slideshows that dominate the cover of many sites Web). JavaScript is an irreplaceable ingredient of more and more sites and applications, an explosion in which has much to do with the growth of the jQuery library.

However, script execution can be easily disabled from most browsers. Users who make that decision will not be able to see any of the features we develop in JavaScript, which are probably indispensable for the full functioning of our website. Those who disable JavaScript often do so to navigate faster (scripts slow down page load), to simplify the interface or as a security measure (through JavaScript it is possible to collect information from users, although most of the language applications Are harmless).

Ideally, you should support JavaScript-generated elements generated by HTML and CSS only, so that users who have disabled scripts can access a website as complete and functional as the others see. But this measure, which forms part of the concept of “progressive improvement”, is rarely adopted. In fact, since JavaScript components are increasingly complex, imitating them with HTML and CSS may be impossible. At most we can generate a simplified version of the website so that at least all the text and images are visible, the forms can be used and the internal links work even without JavaScript. However, this can greatly increase development time.

While it is always a good practice to develop the least amount of features possible with JavaScript, it is estimated that the portion of Internet users that disable it does not reach 10% of the total.


Leave a Reply