Require Javascript on site?
06-28-2010, 06:54 AM,
#21
RE: Require Javascript on site?
(04-25-2010, 01:25 AM)Zack Wrote: Flash is for things like games and animations and crap. I don't think it was ever meant to be used so heavily. JavaScript is for things like input validation or dynamic web pages

you can actually do dynamic webpages with php easily too
[Image: wwe-umaga-173x63.jpg]
Reply
06-28-2010, 08:28 AM,
#22
RE: Require Javascript on site?
I mean dynamic as in smooth AJAX web 2.0 stuff.
Hi! I'm Zach, and I founded NiftyHost. If you need anything, just PM me! :)
Reply
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
06-28-2010, 06:07 PM,
#24
RE: Require Javascript on site?
(06-28-2010, 08:28 AM)Zack Wrote: I mean dynamic as in smooth AJAX web 2.0 stuff.

o mine is just so the pages load ALOT faster it doesnt take up a ton of space. and i dont have to copy and paste the template to each page.
[Image: wwe-umaga-173x63.jpg]
Reply
06-28-2010, 11:05 PM, (This post was last modified: 06-28-2010, 11:05 PM by Vanilla.)
#25
RE: Require Javascript on site?
Quote: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.

Wow! Are you being followed by FBI/CIA/Mafia or what!? :P
Eh...welcome by the way ;)


Well, the conclusion of all this must be something along these lines:
It's generally recommended to use unobtrussive javascript if you want to make use of it, unless of course you want to make use of more advanced interactive stuff, such as animations, videos, et cetera.
Flash is only recommended when HTML5/Javascript doesn't provide what you need, and Silverlight is out of the question


So, that's about it?
Reply
06-30-2010, 03:25 AM,
#26
RE: Require Javascript on site?
(06-28-2010, 11:05 PM)Vanilla Wrote: Well, the conclusion of all this must be something along these lines:
It's generally recommended to use unobtrussive javascript if you want to make use of it, unless of course you want to make use of more advanced interactive stuff, such as animations, videos, et cetera.
Flash is only recommended when HTML5/Javascript doesn't provide what you need, and Silverlight is out of the question


So, that's about it?

Simply: Yes.
With love,
HiddenKnowledge
A.k.a. Yoruichi Shihouin

If you have any questions, feel free to contact me trough email or pm. :)
Reply


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

Forum Jump: