DotDragnet
May 24, 2012, 09:45:24 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Mobile users - Our forum is Tapatalk enabled. http://www.tapatalk.com/
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: The use of JavaScript  (Read 710 times)
SLEE
Hero Member
*****
Posts: 824



View Profile WWW Awards
« on: January 24, 2012, 11:48:36 AM »

Hey everyone hope you are all having a good New Year.

I just wanted to see what your thoughts are on the use of JavaScript.
These days with all the new features coming out everyone wants to use them.
A lot of sites use scripts like Modernizer to allow older browsers to use these new features but it always concerns me about the non js users.
Many designs benefit from the new feautes and also some funcitonality does as well.
Now i am not talking about rounded corners or anything that doesnt really matter if it doesnt display it.
I am talking aout things like HTML5 and Pseudo classes.

HTML5 for example would need to use something like HTML5shim.js for it to work in older browsers but what about the non js users?
Are we at a point where we are expecting users to be upgrading even if they don't use a browser?

« Last Edit: January 24, 2012, 04:39:01 PM by SLEE » Logged

SLEE - still the most confusing ddner...

Follow me on Twitter
Steve Lampkins
Hero Member
*****
Posts: 1328


OOH! *TITTER*


View Profile Awards
« Reply #1 on: January 24, 2012, 12:09:49 PM »

As a noscript user, it often surprises me how badly the simplest of sites seem to fall apart without js enabled.
Logged
Jem
Sr. Member
****
Posts: 469



jemjabella jemjabella
View Profile WWW Awards
« Reply #2 on: January 24, 2012, 12:24:41 PM »

As a noscript user, it often surprises me how badly the simplest of sites seem to fall apart without js enabled.

Indeed.

I don't mind if a site looks pants without JavaScript. I do mind if it's unusable - IMO providing a fallback for essential stuff (like navigation!) is a necessity.
Logged

oi.
sickpuppy
Site Chimp
Administrator
Hero Member
*****
Posts: 1912



sickpuppysoftwa
View Profile WWW Awards
« Reply #3 on: January 24, 2012, 02:39:43 PM »

I think it depends on the site. You shouldn't expect Google Docs to work in any way shape or form without javascript but a noddy brochure site should.
Logged

Matt
DDN Contribs
Hero Member
*****
Posts: 1710



View Profile WWW Awards
« Reply #4 on: January 24, 2012, 03:26:09 PM »

Why would you browse with Javascript disabled out of interest?
Logged

Dom
Hero Member
*****
Posts: 1681


Taster of pasities. Clanger of both pots AND pans.


DominicNeagle
View Profile Awards
« Reply #5 on: January 24, 2012, 03:40:02 PM »

For the same reason they wear tinfoil hats to bed.



Well, that's my excuse anyway.
Logged

Steve Lampkins
Hero Member
*****
Posts: 1328


OOH! *TITTER*


View Profile Awards
« Reply #6 on: January 24, 2012, 03:40:31 PM »

Rough layer of security. You can whitelist 'trusted' sites.
Logged
Jem
Sr. Member
****
Posts: 469



jemjabella jemjabella
View Profile WWW Awards
« Reply #7 on: January 24, 2012, 03:48:42 PM »

I think it depends on the site. You shouldn't expect Google Docs to work in any way shape or form without javascript but a noddy brochure site should.

Well, yes, that applies too.

re: disabling JavaScript - speed, security, convenience, greater control over what I see etc
Logged

oi.
SLEE
Hero Member
*****
Posts: 824



View Profile WWW Awards
« Reply #8 on: January 24, 2012, 04:42:41 PM »

I agree sites that provide service that use JavaScript are a given but sites that sue HTML5 already only have the option of using JS to enable the site to work in older browsers. You can of course devlelop the site with a mix of HTML5 and keep divs with id's rather tha using header, footer etc.

Some companies disable js by default within their network and some users choose to not use it or are using a device that is not js compatible.
Logged

SLEE - still the most confusing ddner...

Follow me on Twitter
Matt
DDN Contribs
Hero Member
*****
Posts: 1710



View Profile WWW Awards
« Reply #9 on: January 24, 2012, 08:07:12 PM »

I think it depends on the site. You shouldn't expect Google Docs to work in any way shape or form without javascript but a noddy brochure site should.

Well, yes, that applies too.

re: disabling JavaScript - speed, security, convenience, greater control over what I see etc

Hmm, but if the same functionality is being built straight into HTML5, wont you loose that control anyway? Is the speed difference that big these days?
Logged

Jem
Sr. Member
****
Posts: 469



jemjabella jemjabella
View Profile WWW Awards
« Reply #10 on: January 25, 2012, 08:35:20 AM »

The same functionality is not being built into HTML5. What HTML5 can do and what JavaScript can do are two completely different kettles of fish.
Logged

oi.
suedenem
Sr. Member
****
Posts: 410



View Profile Awards
« Reply #11 on: January 26, 2012, 01:14:43 PM »

There are two main approaches to this.

The first is pragmatism.  This is where doing your market (visitor) research comes in.  On a case-by-case basis (for each case will be different; ask a bunch of geeks and they'll be more likely to have JS disabled), consider:

  • what proportion of your visitors have JS disabled
  • the value of JS-based feature enhancement
  • the cost of providing a JS-free fallback
  • the cost of *not* providing a JS-free fallback

Assuming that it's a commercial project that you are working on, assign a monetary value to the cost/benefits.  You'll then be able to weigh up which is the most appropriate approach to take; if you project that making the site work for Steve and Jem will cost more than you'll get back, then you might decide to sod them  wink1

The second approach is more normative and value-laden.  As web designers, we 'ought' to be making sites as accessible as possible to as wide an audience as possible.  The best way to do this is generally by using a progressive enhancement methodology, whereby we implement the bare information and behaviour with simple HTML, and then layering on enhancements - CSS, JS and so on - as appropriate.

In reality, a combination of the two approaches may be appropriate, with the normative approach being taken for the bulk of development, with the pragmatic 'business case' being applied when the client requirements go beyond what is possible with simple progressive enhancement.
Logged

So this SEO copywriter walks into a bar, grill, pub, public house, Irish bar, bartender, drinks, beer, wine, liquor...

Beware my weird, cross-dressing comment's; they are pretty standard examples of trolling.
familychoice
Hero Member
*****
Posts: 1185



View Profile Awards
« Reply #12 on: January 26, 2012, 03:31:52 PM »

client requirements

For gods sake don't ask them, you'll end up with clocks floating in water (today's unusual request).
Logged

Just another shite talking, unemployable Walter Mitty character living in a blinkered brassed-off, ITV-drama-esque world...
Jem
Sr. Member
****
Posts: 469



jemjabella jemjabella
View Profile WWW Awards
« Reply #13 on: January 26, 2012, 05:12:18 PM »

You'll then be able to weigh up which is the most appropriate approach to take; if you project that making the site work for Steve and Jem will cost more than you'll get back, then you might decide to sod them  wink1
Hehehe.

For what it's worth, I do whitelist sites constantly - either temporarily or permanently depending on the likelihood of me wanting to come back. smile It's not like I turn it off and sit and stew about shitty developers or anything. My absolute biggest bug bear is people who add content/functionality dependent on JavaScript but make no attempt whatsoever to notify me. Seriously, how hard is it to bung a <noscript><p>this site requires javascript</p></noscript> in there? So many people just don't bother.

So there we go. First step: utilise the <noscript> tag. big grin
Logged

oi.
sickpuppy
Site Chimp
Administrator
Hero Member
*****
Posts: 1912



sickpuppysoftwa
View Profile WWW Awards
« Reply #14 on: January 27, 2012, 08:08:15 AM »

Do you really want Steve visiting your site? That's the real question we are skirting around.
Logged

Steve Lampkins
Hero Member
*****
Posts: 1328


OOH! *TITTER*


View Profile Awards
« Reply #15 on: January 27, 2012, 08:33:11 AM »

I'll whitelist you in a second.
Logged
suedenem
Sr. Member
****
Posts: 410



View Profile Awards
« Reply #16 on: January 27, 2012, 11:08:44 AM »

Sorry, you must enable javascript to view this post.
Logged

So this SEO copywriter walks into a bar, grill, pub, public house, Irish bar, bartender, drinks, beer, wine, liquor...

Beware my weird, cross-dressing comment's; they are pretty standard examples of trolling.
Steve Lampkins
Hero Member
*****
Posts: 1328


OOH! *TITTER*


View Profile Awards
« Reply #17 on: January 27, 2012, 11:29:26 AM »

What?
Logged
vee
Full Member
***
Posts: 215



View Profile WWW Awards
« Reply #18 on: January 27, 2012, 12:00:31 PM »

I design a lot of dental sites and they all want what they have seen on other sites so we do use a lot of javascript.

I do try and always make sure the site functions without it switched on but I am a bit rubbish at including <noscript> tags so I will make sure I addres that.

It does depend on the type of site you are designing though and I think I am guilty of sometimes using javascript because its available rather than because its really needed.
Logged
suedenem
Sr. Member
****
Posts: 410



View Profile Awards
« Reply #19 on: January 27, 2012, 12:05:19 PM »

Adhering to a progressive enhancement methodology will negate the need to use <noscript>.

<noscript> is *so* 2002.
Logged

So this SEO copywriter walks into a bar, grill, pub, public house, Irish bar, bartender, drinks, beer, wine, liquor...

Beware my weird, cross-dressing comment's; they are pretty standard examples of trolling.
sarahA
DDN Contribs
Hero Member
*****
Posts: 2185



View Profile WWW Awards
« Reply #20 on: January 27, 2012, 09:16:50 PM »

I forget about the noscript tag. I usually add the comment into a paragraph somewhere relevant (eg. at the top of the site) and then use JS to hide that. Probably not the best way as the site loads before the JS kicks in so you may get a flash of it, but we also tend to ensure the functionality works without it so there's no need to ask people to enable JS anyway.
Logged

m00min
Newbie
*
Posts: 47



View Profile Awards
« Reply #21 on: January 30, 2012, 11:27:26 PM »

Adhering to a progressive enhancement methodology will negate the need to use <noscript>.

<noscript> is *so* 2002.

Totally. I tend to build the whatever-it-might-be in straight HTML/CSS then use JavaScript to add a class, thus styling the thing (if needed) for the JS. The aim is generally that people with JS turned off shouldn't be seeing anything that looks broken.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2006-2008, Simple Machines Valid XHTML 1.0! Valid CSS!