|
SLEE
|
 |
« 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
|
|
|
|
|
Steve Lampkins
|
 |
« 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
|
 |
« 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
|
 |
« 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
|
 |
« Reply #4 on: January 24, 2012, 03:26:09 PM » |
|
Why would you browse with Javascript disabled out of interest?
|
|
|
|
|
Logged
|
|
|
|
|
Dom
|
 |
« 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
|
 |
« Reply #6 on: January 24, 2012, 03:40:31 PM » |
|
Rough layer of security. You can whitelist 'trusted' sites.
|
|
|
|
|
Logged
|
|
|
|
|
Jem
|
 |
« 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
|
 |
« 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
|
|
|
|
|
Matt
|
 |
« 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
|
 |
« 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
|
 |
« 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  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
|
 |
« 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
|
 |
« 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  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.  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. 
|
|
|
|
|
Logged
|
oi.
|
|
|
|
sickpuppy
|
 |
« 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
|
 |
« Reply #15 on: January 27, 2012, 08:33:11 AM » |
|
I'll whitelist you in a second.
|
|
|
|
|
Logged
|
|
|
|
suedenem
|
 |
« 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
|
 |
« Reply #17 on: January 27, 2012, 11:29:26 AM » |
|
What?
|
|
|
|
|
Logged
|
|
|
|
|
vee
|
 |
« 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
|
 |
« 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
|
 |
« 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
|
 |
« 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
|
|
|
|
|