Javascript is not included

I have been developing web applications for several years. One of the problems I have to deal with is developing web applications in which javascript is not enabled or inaccessible. I know that this was a problem a few years ago, but I am interested to know what other web designers, developers think about this problem? Is this still a problem?

The reason I ask about this is because it seems to me that we are just serving scripts that are unlikely to happen in a few days now. Does this especially apply to public websites and web applications? Am I right in my assessment? I am very interested in learning about the experience and other knowledge of other web developers and designers.

Thanks.

+4
source share
5 answers

I would recommend you try to provide the basic functionality of your site without javascript.

If you work this way, you will get a site that works, even if you or another developer allow imperfect JS on the production site - a serious JS error will not necessarily be a complete demo jam.

Also: AJAX, effects, and other fluff may take aaaaaaages for debugging. Users do not mind simple. You should strive for simple and slowly add bells and whistles, testing users as you add, to avoid creating a bunch of AJAXeffectsFluffy shit that is messy and buggy ...

+2
source

Even today, some people (including me) have disabled JS by default. Professionally built sites either warn of disabled features or work without JS (via full-screen reboots).

+2
source

+1 for progressive improvement. Here you have the basic, non-flashy, functionality with direct HTML / CSS, and then get JavaScript code to either complement or replace this functionality with your own.

For example, if you have a swap page on a page that consists of simple hyperlinks for page 1, page 2, etc., for example.

<div class="paging"> <ul> <li><a href="?page=1">1</a> <li><a href="?page=2">2</a> <li><a href="?page=3">3</a> </ul> </div> 

Then you will have a JavaScript function that looks for your div.paging element and completely replaces it with something more elegant, for example (in pseudocode)

 $('div.paging').each(function() { $(this).find('ul').remove(); $(this).append(renderAdvancedPaging()); }); 

As for what it can be replaced with, it can be an endless scroll in the style of Google Maps (yes, I know that Bing had this in the first place), or a Twitter approach with a big button for the next page at the bottom, which dynamically adds the next set results (see http://twitter.com/codinghorror - scroll down and click "More").

The benefits of this Progressive Improvement approach are:

  • Works for people who have disabled JavaScript, including experienced users and users working in highly blocked corporate intranets.
  • Accessibility: Blind users with screen readers can still use your site.
  • Search engines that won’t run JavaScript on your page can still follow your paging links and index additional content on those pages.

The last point should be the most important if you care about SEO.


However, there are times when you can reasonably ignore Progressive Enhancement and create a website that relies on JavaScript and won't work without it. For example, you usually do this for advanced web applications or optimized mobile web applications, such as Google Maps, a calendar application, an HTML5 drawing application that uses the <canvas> , a game running HTML5, etc. My rule is that something “Content Based” (a blog site, a news site, an e-commerce store, etc.) should apply Progressive Enhancement, while “Application-y” might just go away with a JavaScript mandate.

Ultimately, it comes down to what you are building and whether the Progressive Enhancement route is right for you.


Statistics for the number of people with JavaScript disabled is hard to find ( some are here , but it's from 2008, also this StackOverflow post from 2008), but I think it's less likely that the script is disabled due to the increase in the number of RIA applications and applications HTML5 that rely on JavaScript (Google Docs, Maps, etc.). Also consider the increasing number of mobile Internet devices (iPhones, iPads, etc.) that do not allow JavaScript to be disabled.

+2
source

Progressive improvement! I almost always browse with JS disabled, spending too much time annoying through AJAXd websites for too long, so always start with simple page loading forms, etc., before adding JS functionality.

JS frameworks such as jQuery, mootools, etc., are becoming more and more popular, as almost everyone can create a “brilliant” website with animation. But I think the more people start using tools, the less desirable any regular browser is to enable JS.

+1
source

There are those who think that you also need to take care of people who have CSS disabled. All this can drive you crazy, considering all the “what ifs” in the world of the Internet. Those who disable javascript know what they are for, and are never surprised to find a site that does not work because of it. If they know enough to turn it off, they know enough to get it back when they need it.

I think Tim Berners-Lee, who once said that the network should always be available for scripting. Script hooks are built into HTML, and all browsers work with it. Almost everyone has it, and they should. Use it to your advantage.

0
source

All Articles