SitePoint Sponsor |
|
User Tag List
Results 1 to 12 of 12
Thread: Too much Javascript?
-
Jan 19, 2001, 22:58 #1
- 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.
-
Jan 20, 2001, 01:14 #2
- 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.
-
Jan 20, 2001, 12:11 #3
- 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.
-
Jan 20, 2001, 18:46 #4
- 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.
-
Jan 20, 2001, 19:32 #5
- 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.
-
Jan 20, 2001, 19:53 #6
- 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.
-
Jan 21, 2001, 03:29 #7
- 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
-
Jan 21, 2001, 11:35 #8
- 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.
-
Jan 21, 2001, 16:58 #9
- 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
-
Jan 21, 2001, 21:33 #10
- 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
-
Jan 22, 2001, 12:30 #11
- 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!"
-
Jan 22, 2001, 19:26 #12
- 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