Member Sign In
Not a member?

A Wired.com user account lets you create, edit and comment on Webmonkey articles. You will also be able to contribute to the Wired How-To Wiki and comment on news stories at Wired.com.


It's fast and free.

Sign in with OpenID
Sign In
Webmonkey is a property of Wired Digital.
processing...
Join Webmonkey

Please send me occasional e-mail updates about new features and special offers from Wired/Webmonkey.
Yes No

Please send occasional e-mail offers from Wired/Webmonkey affiliated web sites and publications, and carefully selected companies.
Yes No

I understand and agree that registration on or use of this site constitutes agreement to Webmonkey's User Agreement and Privacy Policy.
Webmonkey is a property of Wired Digital.
processing...

Retrieve Sign In

Please enter your e-mail address or username below. Your username and password will be sent to the e-mail address you provided us.

or
Webmonkey is a property of Wired Digital.
processing...

Welcome to Webmonkey

A private profile page has been created for you.
As a member of Webmonkey, you can now:
  • edit articles
  • add to the code library
  • design and write a tutorial
  • comment on any Webmonkey article
Close
Webmonkey is a property of Wired Digital.

Sign In Information Sent

An e-mail has been sent to the e-mail address registered in this account.
If you cannot find it in your in-box, please check your bulk or junk folders.
Sign In
Webmonkey is a property of Wired Digital.

Is JavaScript Part of the ‘Real’ Web or Not?

ScriptvnoscriptHas JavaScript become a fully integrated part of the web — like CSS — or is it still a luxury add-on that not everyone has or wants? That’s the question behind a question that blogger Jeff Atwood recently posed on a development site.

Atwood’s original question was “is it OK to require JavaScript?” In the specific context of his example, the JavaScript would only be required if you wanted to participate in the site — passively browsing and reading the site wouldn’t require JavaScript.

The resulting discussion in the comments is quite lively, with well over a hundred developers and users weighing in with their thoughts. The general consensus seems to be split between two camps: those who believe JavaScript is just another part of the web, and those who see JavaScript as an outside tool that needs to degrade gracefully back down to the web’s actual tools — pure CSS and HTML.

The chief problem for those in the later camp is that JavaScript introduces the possibility of cross-site scripting attacks, and requiring JavaScript essentially requires your users to be open to scripting vulnerabilities.

It’s a classic case of good technology being used to nefarious ends which makes some users hesitate.

I’m probably in the minority, but I run the Firefox add-on NoScript as a matter of course, and I have it set to deny all domains by default. If a site is interesting enough or if I consider it trustworthy, then it gets added to the white list. But otherwise, if you use JavaScript and it doesn’t degrade well, I’m likely to skip right past your site.

Got strong opinions on JavaScript? Let us know what you think in the comments — is it OK to require JavaScript? Or should you make sure that all your JavaScript features gracefully degrade back to HTML and CSS?

[via Simon Willison]

See Also:

Post Comment Comments Permalink Print
Reddit Digg

 
Subscribe now

Special Offer For Webmonkey Users

WIRED magazine:
The first word on how technology is changing our world.

Subscribe for just $10 a year