Javascript - can I rely on it or not?

Discussion in 'HTML & Website Design' started by DoA, May 2, 2007.

  1. #1
    Hi guys,

    A friend has asked me to look over her website and give her feedback on the new design she has had done.

    The first thing I noticed was that the shopping cart is coded is javascript.

    I need to know whether this will cause her a problem, I know that if you're browsing w/o JS then it won't work. But seriously, how many people are browsing w/o javascript these days?

    Will it also cause any problems for accessibility (i.e. blind / deaf people etc.)

    Many thanks for your responses!

    DoA
     
    DoA, May 2, 2007 IP
  2. bacanze

    bacanze Peon

    Messages:
    2,419
    Likes Received:
    127
    Best Answers:
    0
    Trophy Points:
    0
    #2
    10% of users have javascript turned off, such as pda's mobiles etc, and people turn if off within their computer browsers, if you are to use javascript, make sure you have rollback.
     
    bacanze, May 2, 2007 IP
  3. Mr Blonde

    Mr Blonde Guest

    Messages:
    142
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #3
    javascript should only be used to enhance the website, it should still be functional without it. There is still a pretty decent percentage of people browsing without javascript so it would be pretty bad for business not to have it. Also like you mentioned it could affect screen readers as they dont read javascript so they wouldn't know what's going on ( i don't know how it could affect deaf people though ;) )

    if they are going to stick with the javascript checkout at least put a message in <noscript> tags displaying javascript must be enabled
     
    Mr Blonde, May 2, 2007 IP
  4. RingBoxer

    RingBoxer Peon

    Messages:
    182
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    As I explored couple of years ago 5% of users turned off JS feature.
     
    RingBoxer, May 2, 2007 IP
  5. marty

    marty Peon

    Messages:
    154
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I would like to know where the 5% and 10% statistics for JS being turned off come from. About 3 years ago I turned JS off on my browser and I lasted about 30 minutes because the web was totally unusable without JavaScript.
     
    marty, May 2, 2007 IP
  6. QiSoftware

    QiSoftware Well-Known Member

    Messages:
    805
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    158
    #6
    Great point.
     
    QiSoftware, May 2, 2007 IP
  7. rgchris

    rgchris Peon

    Messages:
    187
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #7
    As a rule of thumb I only use JavaScript for enhancement purposes just on the off-chance that someone could have it turned off... Personally though, I wouldn't worry about it in your situation. Shouldn't be a huge deal.
     
    rgchris, May 2, 2007 IP
  8. Mr Blonde

    Mr Blonde Guest

    Messages:
    142
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #8
    ill try and dig it up and i'll post it. it wasnt for people having javascript turned off, it was for people who don't have an option of even having it enabled. ie: older browsers, mobile devices, people using screenreaders, and a lot of internet cafe's and companys disable scripts aswell.

    This is a webmaster forum remember so everyone here couldnt imagine having javascript disabled, but after the trouble with active x there are still a lot of people who don't trust enabling scripts
     
    Mr Blonde, May 2, 2007 IP
  9. Mr Blonde

    Mr Blonde Guest

    Messages:
    142
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #9
    couldn't find the exact article i saw a couple of years ago but have found a site that tracks statistics here
    It's a bit less than what it used to be, but 4% of users on the internet is still a whole lot just to plain disregard... if you have 10k visitors a day, 400 are instantly ruled out from buying from you
     
    Mr Blonde, May 2, 2007 IP
  10. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #10
    I would be wary of those figures. I didn't see any mention of just how the stats were gathered. Obviously they couldn't use javascript. :) So, do they have a dual system? One part javascript and another part tracking requests for the 1&#215;1 transparent gif? If that's the case how does not fetching the image tilt the figures?

    For the sake of argument, let's say that half those without js also block or don't support images. (I don't fetch images that are not on the visited site, which also tilts the figures.) Let's also say that 10% is a good number for no js.

    Start with 1050 visitors (This will make the math simpler, trust me.)
    Visitors without js, 105.
    Visitors not fetching images, say 50. (Giving the benefit of the doubt, here.)
    Total image count, 1000.
    Total js count, 945, or seemingly 94.5%. That implies 5.5% without js. But we know that's not true.
    What if there are just 1.5%, say 15 visitors that don't fetch the off site images. Now we have 945&#247;985=95.94%, or 4.06% non-js.

    In one site I track, the javascript tracking totes the pages served from cache that would not be fetched from the server. I also know that about 25% of my visitors in any period are return visitors, so we can assume they are viewing some significant number of pages from cache.

    From this we would assume the server logs would indicate far fewer pages served than the js tracker service shows. In fact, the server logs show about the same number of pages served as the js tracker. We can only conclude that 1) I have a higher percentage of first time visitors than thought, and 2) that a lot of the new visitors do not have javascript enabled. We must conclude that the 'returning' viewers do have js enabled, or we wouldn't know they were returnees. There would be returnees without js that I don't know about. (No, I'm not going to parse the logs for that&#8212;I don't care enough.)

    From anecdotal evidence such as mine:

    Tech oriented and b2b sites will have more js-disabled visitors than consumer sites.

    Businesses, Internet caf&#233;s, libraries, &c. will be likely to block scripting as a security issue.

    The home user will have js enabled due to ignorance, not being aware that it can be disabled nor any of the reasons for doing so.

    People using assistive technology, PDAs, cell phones, et al may not have js support.

    The 10% figure seems a very reasonable number over all. I suspect that the number is higher among qualified buyers on the net. Those being people who really spend more time buying, thus more time visiting different sites, and becoming more critical.

    cheers,

    gary
     
    kk5st, May 2, 2007 IP
  11. Mr Blonde

    Mr Blonde Guest

    Messages:
    142
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #11
    wow nice post gary! i don't really trust the data 100% either but thought it was good as a guide when someone asked for hard evidence.... looks like i should've just waited for you to post first tho ;)
     
    Mr Blonde, May 2, 2007 IP
  12. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #12
    But, I couldn't until I had something to pick on. :)

    cheers,

    gary
     
    kk5st, May 3, 2007 IP
  13. deques

    deques Peon

    Messages:
    206
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #13
    one of the most popular extensions for firefox is noscript. having it installed turns off all scripts in a site.
    a site that is only usable because of javascript isnt the best site. people with javascript turned off would be confused and will probably never check the site and will never return, unless its a visitor that knows nothing but surfing about computers
     
    deques, May 3, 2007 IP
  14. DoA

    DoA Peon

    Messages:
    531
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #14
    To sum up, I think she should alter the site if possible, but it doesn't really make too much difference (for her target audience) if she doesn't
     
    DoA, May 3, 2007 IP