Do you have lots of JavaScript coding in
header section of your web pages? Do you re-list your CSS styles at
top of every page? Do you have JavaScript coding spread throughout your web pages?If you answered yes to any of these questions your site may be driving away search engine spiders and losing search engine position ranking.
As you can imagine search engine spiders have a lot of pages to get through on
web when they are indexing sites. To improve their speed and efficiency search engines program their spiders to give up easily if they have problems with a page or if they have to wade through too much code to find
relevant content.
This is one of
reasons why it is so important to put your keywords as close to
top of
page as possible. This way
search bot will see
keywords before giving up and moving on to
next page.
But what do you do if you have lots of JavaScript code or CSS styles pushing your keywords down
page in your coding? You need to find a way to cut down on all that code that gets in
way of
search engines properly indexing your page.
We do this by moving
JavaScript and CSS styles off
page and into external files. This is a fairly easy and straight forward process and can have
added benefit of making your pages load faster as well, which
search engines also like.
In many ways CSS styles and JavaScript work in a similar fashion. You set up functions in a script or formatting in a style sheet section, and then refer to that section in your html code. For instance if you have a JavaScript that displays a clock on your page you would have
JavaScript functions for
clock listed in your head section, then you would simply call that function from
place on
page where
clock would be displayed.
Similarly with CSS you set up your styles ahead of time in a Styles section of
page head, then you simply refer to
styles as needed in your html coding. One benefit of this is that it cuts down dramatically on
amount of formatting code needed when compared to using Font tags.