Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Website doesn't work with Javascript turned off

So head to www.jabsy.com, with Javascript turned off.

Basically, I use some JQuery UI Dialogs, I use Javascript for all the bindings on the page...I pretty much use it for everything. Is that really a bad thing though?

Nothing really works without Javascript. Not even the Google Maps API.

Should I go out of my way to try and make the entire page work without Javascript? Is that even possible with my site? I wouldn't even know where to begin as I use Javascript for everything, so could I get some points? How many users actually turn off their Javascript these days?

Would it help to let the user know if they have Javascript turned off and make them turn it on before accessing it and provide them with directions how?

like image 871
slandau Avatar asked Jul 08 '11 14:07

slandau


People also ask

What happens if I disable JavaScript on a website?

The JavaScript in advertisements, social media embeds, and dedicated tracking tools all stop working if you disable JavaScript. There are still ways for you to be tracked online, but if those methods are done with JavaScript, having it disabled will stop them from working.

How do I disable JavaScript If a website is disabled?

Click the Security tab at the top of the Advanced window. On the Security tab, next to Web content, click the check box next to Enable JavaScript box to toggle it on or off.

Can you use the Web without JavaScript?

If a site is “client-side rendered” ( CSR ), that means JavaScript is doing the data fetching and creating the DOM and all that. If we're talking about websites “working” or not with or without JavaScript, a site that is client-side rendered will 100% fail without JavaScript.

What happens if I disable JavaScript in Chrome?

Blocking JavaScript can disable functionality on websites, and may make some websites unusable. Blocking it in Chrome isn't an all-or-nothing setting, though. You can choose to block specific sites, or, if you block all JavaScript, set exceptions for specific websites you define.


2 Answers

Yes, if your site requires JavaScript you need to let the user know that it is required.

For example:

<noscript>
  <div>
    You need to have JavaScript enabled to use this site.
  </div>
</noscript>

You can provide more description as appropriate. A savvy user that sees this text is going to be able to then go in and turn on JavaScript for your site. A non-technical user might have trouble, but I would think most of them would be running with JavaScript enabled anyway (?).

like image 79
Justin Ethier Avatar answered Oct 07 '22 00:10

Justin Ethier


According to data collected in 2007, about 3% of users in the US have JavaScript off. I'm sure that number is lower today.

It really depends on how critical the sections of your page that require JavaScript are. If there is a form that is mission critical, but controlled completely by JavaScript, you probably want to engineer a way for that form to do the same thing with JS on and off.

However, you have animated snowflakes on your background (for the love of God, don't really do this), it's not going to negatively affect someone visiting your site with JavaScript off.

Really, it all comes down to how important the information or actions are to your site. Turn off JavaScript and note all the things you can't do that are absolutely vital, then make them work.

Keep in mind there are several audiences that will not render your JavaScript:

  • Screen readers/accessible browsers
  • Console-based browsers (Text based browsers)
  • Search Engines (Google)
like image 25
Michael Irigoyen Avatar answered Oct 06 '22 23:10

Michael Irigoyen