SitePoint Sponsor

User Tag List

Results 1 to 12 of 12
  1. #1
    SitePoint Member
    Join Date
    Dec 2000
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Does too much Javascript in a site send users away? I'm re-designing a site that uses a lot of it, and I'm tempted to get rid of most of it.
    It's at http://www.wyomingwear.com.

  2. #2
    Irritability Defined
    Join Date
    Jul 2000
    Location
    80,000 feet below the surface
    Posts
    1,442
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If it doesn't serve a useful purpose that enhances the site in some facet, then get rid of it.

    That said I had a quick look and it seems to be ok.
    My 2 Cents (or is that 2.2 Cents including GST?)

  3. #3
    ********* Addict
    Join Date
    Jul 2000
    Posts
    268
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Definitely, a visitor is turned away by too much javascript. The only thing worse than an excess of JS is a javascript error message, when the designed coded it improperly. The popups are generally awful. Javascript does have many useful purposes, but don't over do it. With this said, your site should still be functional in a browser that has JS turned off.

  4. #4
    SitePoint Wizard westmich's Avatar
    Join Date
    Mar 2000
    Location
    Muskegon, MI
    Posts
    2,328
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I agree with Webmaster and would add the comment that 95% of Web surfers don't know what Javascript is.
    Westmich
    Smart Web Solutions for Smart Clients
    http://www.mindscapecreative.com

  5. #5
    Sports Publisher mjames's Avatar
    Join Date
    Jan 2000
    Location
    Charlotte, NC
    Posts
    5,891
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Another thing is that some users may not even be able to see JavaScript at all, let alone be turned off by it - those who have it turned off.

  6. #6
    SitePoint Enthusiast
    Join Date
    Jan 2001
    Location
    Herndon, VA
    Posts
    63
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think the javascript on your page is fine... but when possible, use server side scripts or no scripts at all in place of javascript. This allows for a more universal audience.
    --
    Coolrandomfree- Download stupid movies and do stupid stuff!
    Coolrandomfree Message Boards

  7. #7
    The Hiding One lynlimz's Avatar
    Join Date
    Jul 2000
    Location
    Singapore
    Posts
    2,103
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The javascript on your site is nothing. LOL..
    I have about 8 javascript...( includes both for IE and nS )..
    so an average user entering the site would load about 6..

    use this to suppress errors

    function stoperror(){
    return true
    }
    window.onerror=stoperror

    be sure to disbale if you're debugging or testing your site!
    "Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world."
    -- Albert Einstein

  8. #8
    SitePoint Member
    Join Date
    Dec 2000
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the tip, lynlimz. Where would I insert this script?

    Thanks also to everyone else. This forum is a huge help.

  9. #9
    Irritability Defined
    Join Date
    Jul 2000
    Location
    80,000 feet below the surface
    Posts
    1,442
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It'd be ideal if you insert it in the <head></head> section
    My 2 Cents (or is that 2.2 Cents including GST?)

  10. #10
    The Hiding One lynlimz's Avatar
    Join Date
    Jul 2000
    Location
    Singapore
    Posts
    2,103
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes...
    If you have an external .js file, for general functions like what I have which I would insert into the <head></head> tags,

    place the error stopper script into that file.

    Its always a good idea to insert your javascript codes into a separate file as it would make it easier for you to update your code thorughout the entire site and it also looks neater and readbale ( your html code )
    "Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world."
    -- Albert Einstein

  11. #11
    SitePoint Wizard TWTCommish's Avatar
    Join Date
    Aug 1999
    Location
    Pittsburgh, PA, USA
    Posts
    3,910
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Great idea lynlimz! Very useful, mind if I make use of it?

    That said, JavaScript should be a tool, not an effect. IE: use it for form validation, form submission, and things like that - not for entering your name and saying "Hi name!"

  12. #12
    The Hiding One lynlimz's Avatar
    Join Date
    Jul 2000
    Location
    Singapore
    Posts
    2,103
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yess..Of cause TWTCommish! Use it all you want!

    Erm..Right. I agree...I use Javascript only when necessary, like validating my newsletter subscription form, and specifying defualt style sheets and navigational menus for different browsers for cross-compatibility.
    "Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world."
    -- Albert Einstein


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •