Require Javascript on site?
06-28-2010, 05:41 PM, (This post was last modified: 06-28-2010, 05:58 PM by RichardGv.)
#23
RE: Require Javascript on site?
This is how I consider the whole thing:
  1. If there's something that can be achieved with either JavaScript or HTML/CSS, I would prefer CSS. There are some people, like me, who tend to disable JavaScript due to security consideration. But there are very few ones disabling CSS. for CSS almost never brings any secuirty issues. (It's indicated that @font-face may brings security problems, though.) Also, a static CSS could be more efficient than JavaScript during execution, I think. (This point is unproved.)
  2. If there's something that can only be achieved with JavaScript, it's needed to use it. But a graceful downgrade when JS is not enabled, and a friendly notification, are preferred.
  3. Between Flash and HTML5, I would prefer HTML5. Flash has a long history of security flaws and potentially more dangerous than JavaScript and other features built-in in browsers, with more access to other parts of the system. Not to mention it's lack of a proper 64-bit version (It used to have one, but Flash 10.1 comes with no x64 version).
  4. I don't think there's a point to require JavaScript in a "casual" website, unless you have very specific needs, for instance, video playback, complicated presentation, instant messaging or chat, in-browser games. Several types of most commonly used scripts, i.e. blogs, CMS, forum systems, usually use JavaScript (and these JavaScript does improve productivity, e.g. Ajax features), but don't explicitly require JavaScript (i.e. downgrading gracefully when JavaScript is disabled), and that's the approach I prefer. Another possiblity is to redirect users disabling JavaScript to a special "?noscript=1" page, which is used by several big sites as well.
  5. Still, most people don't keep JavaScript disabled. I believe more than 98% of visitors here have JavaScript enabled. So, requiring JavaScript or not don't make a significant difference, as far as the JavaScript code is properly written and don't cause serious performance issues.

And my personal opinion here, which, I guess, is largely different from most of your visitors: From the perspective of a user, I dislike sites that use unnecessary JavaScript. Following a very paranoid policy, I heavily relies on NoScript, and forbids JavaScript, Flash, Java, Meta redirection, web bugs, audio, video, @font-face. bookmarklets, XSLT, iframe, frames, and cookies on any website that I've not explicitly marked as trusted. If a site that I don't trust relies on JavaScript, I will generally refuse viewing the site. You can consider developing a JavaScript-less website if you think your visitors have such paranoia thought process. :)

Note: I'm not an expert in web development, especially the frontend. My statements above can be wrong.
Gentoo Linux User (w/ fvwm) / Loyal Firefox User / Owner of a Stupid Old Computer - My PGP Public Key

No man is an island, entire of itself; every man is a piece of the continent, a part of the main; if a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friends or of thine own were; any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee.
-- Devotions Upon Emergent Occasions (1624), John Donn
Reply


Messages In This Thread
Require Javascript on site? - by Vanilla - 04-22-2010, 02:22 AM
RE: Require Javascript on site? - by Zach - 04-22-2010, 08:31 AM
RE: Require Javascript on site? - by Matt - 04-22-2010, 11:29 AM
RE: Require Javascript on site? - by Zach - 04-23-2010, 08:57 AM
RE: Require Javascript on site? - by Matt - 04-23-2010, 09:14 AM
RE: Require Javascript on site? - by Zach - 04-23-2010, 09:21 AM
RE: Require Javascript on site? - by Matt - 04-23-2010, 12:13 PM
RE: Require Javascript on site? - by Matt - 04-23-2010, 09:54 PM
RE: Require Javascript on site? - by pspman - 04-24-2010, 12:27 AM
RE: Require Javascript on site? - by Zach - 04-24-2010, 06:38 AM
RE: Require Javascript on site? - by Matt - 04-24-2010, 07:58 AM
RE: Require Javascript on site? - by Vanilla - 04-24-2010, 10:39 PM
RE: Require Javascript on site? - by Zach - 04-25-2010, 01:25 AM
RE: Require Javascript on site? - by Zavoo - 06-28-2010, 06:54 AM
RE: Require Javascript on site? - by Matt - 04-25-2010, 01:41 AM
RE: Require Javascript on site? - by KSubedi - 06-13-2010, 05:01 AM
RE: Require Javascript on site? - by Vanilla - 06-28-2010, 12:44 AM
RE: Require Javascript on site? - by Matt - 06-28-2010, 01:36 AM
RE: Require Javascript on site? - by Zach - 06-28-2010, 08:28 AM
RE: Require Javascript on site? - by Zavoo - 06-28-2010, 06:07 PM
RE: Require Javascript on site? - by Vanilla - 06-28-2010, 11:05 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Dev.Opera - Good webdevelopment site Vanilla 0 842 10-21-2010, 02:42 AM
Last Post: Vanilla

Forum Jump: