JavaScript is harmful ?

Discussion in 'Search Engine Optimization' started by FireStorM, Jan 6, 2007.

  1. #1
    I have JavaScript on all of my pages in the form of ads .. is it harmful for SEO ? How i can PUT the javascript code in an external file ?

    Thanks
     
    FireStorM, Jan 6, 2007 IP
  2. hooperman

    hooperman Well-Known Member

    Messages:
    646
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    108
    #2
    Why would javascript be harmful?

    If you have links that are in javascript code, the search engines won't follow them but no harm is done.
     
    hooperman, Jan 6, 2007 IP
  3. roy77

    roy77 Active Member

    Messages:
    1,088
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    78
    #3
    why would a script language be any harm for your search engine ranks? i am not sure, maybe putting 2 much java is bad? never thought of it
     
    roy77, Jan 6, 2007 IP
  4. KC TAN

    KC TAN Well-Known Member

    Messages:
    4,792
    Likes Received:
    353
    Best Answers:
    0
    Trophy Points:
    155
    #4
    Javascript as ads is pretty common as Google Adsense is using it.. 100% safe :)
     
    KC TAN, Jan 6, 2007 IP
  5. semlady

    semlady Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I sometimes see sites that have >1000 lines of Javascript at the top of the page. When you externalize all the clutter, sometimes it can be a little of a boost in the rankings. But overall, my understanding is that spiders don't really bother with JS much.

    To externalize the javascript, just put the code in a new file (myscripts.js or something) and call it from the webpage with a

    <script language="JavaScript" src="myscripts.js"></script>

    Cheers
     
    semlady, Jan 6, 2007 IP
  6. D_C

    D_C Well-Known Member

    Messages:
    1,107
    Likes Received:
    21
    Best Answers:
    1
    Trophy Points:
    160
    #6
    I don't see how javascript can be harmful since it is a very widely used code. and as semlady said simply ad src="file.js" into the script tag and then close it.
     
    D_C, Jan 6, 2007 IP
  7. Freewebspace

    Freewebspace Notable Member

    Messages:
    6,213
    Likes Received:
    370
    Best Answers:
    0
    Trophy Points:
    275
    #7
    Yes you are absolutely right! and I think Javascript will not do anything harmful to Search Engines

    For example see the source page of Google's home page

    you may get the right answers

    and also I think Javascript will not be indexed by Search Engines
     
    Freewebspace, Jan 6, 2007 IP
  8. Napoleon

    Napoleon Peon

    Messages:
    732
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Javascript is not harmful, but you'll miss the SEO advantages that you get while using plain HTML/CSS when you use javascript.
     
    Napoleon, Jan 6, 2007 IP
  9. oseymour

    oseymour Well-Known Member

    Messages:
    3,960
    Likes Received:
    92
    Best Answers:
    0
    Trophy Points:
    135
    #9
    just put it in the external css and make sure your site navigation doesn't use javascript and you should be fine.
     
    oseymour, Jan 6, 2007 IP
  10. akula

    akula Peon

    Messages:
    689
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Why would it be better to put all JS in an external file for SEO since all JS is ignored by SE spiders?
     
    akula, Jan 6, 2007 IP
  11. dhruv37

    dhruv37 Well-Known Member

    Messages:
    3,222
    Likes Received:
    195
    Best Answers:
    0
    Trophy Points:
    165
    #11
    JavaScripts are fine as search engine spiders are ignoring them.
    you can use that.
     
    dhruv37, Jan 6, 2007 IP
  12. semlady

    semlady Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Well, that depends on whether or not you believe that keywords lose "impact" the farther down the page they appear. If you subscribe to the theory that keywords have more relevance near the top of the page, then 500 lines of javascript at the top of the file would be something you would want to avoid.
     
    semlady, Jan 7, 2007 IP
  13. autorave

    autorave Peon

    Messages:
    995
    Likes Received:
    69
    Best Answers:
    0
    Trophy Points:
    0
    #13
    I've read somewhere that there shouldn't be too much javascript in your header .. other than that I dun think there's any problem with it ..
     
    autorave, Jan 7, 2007 IP
  14. akula

    akula Peon

    Messages:
    689
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #14
    500 lines or 10 trillion lines is does not matter because it is ignored. We are not talking about placing content above the fold for human consumption here, we are talking about how a basic programming script reads and interprets a page.
     
    akula, Jan 7, 2007 IP
  15. Anghus

    Anghus Peon

    Messages:
    510
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #15
    JavaScripts are fine for end users. But if you are trying to reach SE and good placing, then forget using JavaScript.

    By that, it doesn't mean that you shouldn't use some of it, like in ads etc... But Do not build up your whole site with using JavaS.
     
    Anghus, Jan 7, 2007 IP
  16. hooperman

    hooperman Well-Known Member

    Messages:
    646
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    108
    #16
    Whether or not you believe it, it's not true: http://searchenginewatch.com/showPage.html?page=3624222

    “CSS can also be used to hide text or abuse header tags which would then fall under the category of web spam. Some designers will use CSS to position content first in html thinking it helps with rankings (it doesn't). Finally the use of coordinates to hide text or stacking chunks of content on top of each other can be disadvantageous as engines can detect this as a spam technique.”
     
    hooperman, Jan 8, 2007 IP
  17. semlady

    semlady Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #17
    Like I said... if you subscribe to the theory.
     
    semlady, Jan 8, 2007 IP
  18. crushed_kid

    crushed_kid Banned

    Messages:
    69
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #18
    <script src="/filename[dot]js" type="text/javascript">

    or

    <script language="Javascript" src="/filename[dot]js" type="text/javascript">

    Note: If you have Javascript in all pages, it can be harmful, spiders may have a difficulty in spidering javascript contents.
     
    crushed_kid, Jan 9, 2007 IP
  19. TatiAnA

    TatiAnA Active Member

    Messages:
    1,103
    Likes Received:
    22
    Best Answers:
    0
    Trophy Points:
    78
    #19
    I agree on this part. Search engines do consider the keyword's prominence on the search engines. so if you have a very long line of javascript code at the top of your header, this makes it more difficult for the spider to crawl your targeted keywords which is in the body.
     
    TatiAnA, Jan 10, 2007 IP
  20. hooperman

    hooperman Well-Known Member

    Messages:
    646
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    108
    #20
    Where's the difficulty? The spiders simply ignore the javascript and move on to the content.
     
    hooperman, Jan 10, 2007 IP