Script Code in an External File

Discussion in 'Search Engine Optimization' started by Jordank14, Jun 2, 2009.

  1. #1
    Using a web analysis program I received the following message:

    Your web page uses 304 bytes of script code which makes it harder for search engines to index your page. Consider putting the script code in an external file with the <script src="myscripts.js"></script> commands. The file "myscripts.js" should be a simple text file that contains only the script code without any HTML markup. The next time your page is spidered by the search engine robots, the important content on your page will be closer to the top of the page, and you might have a better keyword density.

    I'm not an SEO expert. Can anyone explain to me what this message is instructing me to do and how to go about it?

    Thanks!
     
    Jordank14, Jun 2, 2009 IP
  2. shailendra

    shailendra Peon

    Messages:
    1,225
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Which web analysis program are you using? Actually search engines do not crawl and index scripts and extensive use of scripts can make the job of a robot tougher and lower the rankings of your website. If it is just one or two times you can use it on the page or else put it in an external .js file and call it in the main page. This will help to keep the content to code ratio better. Always remember, more the content to code ratio the better it is for your website.
     
    shailendra, Jun 2, 2009 IP
  3. bogs

    bogs Active Member

    Messages:
    2,142
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    80
    #3

    actually search engine crawl any scripts but not index... that why it is suggested to save other scripts as different file and just call it to your page.. And by doing this you are helping bots to crawl your whole site/page more faster..
     
    bogs, Jun 2, 2009 IP