Saturday, 4 February 2012

Don’t Nest Your Pages Too Deeply

When Google crawls your site, it typically starts at the home page and then follows
each link on the page to all your other pages. Google finds your home page in turn
from following a link on another website that points to your site.

Google seems to attach more importance to files that are closer to the root folder on
your server - the folder on your Web server where the home page file is located.
Some web designers however may create multiple folders and subfolders on the
server for ease in maintaining lots of files.

Google may not value pages located in subfolders as strongly as files located in the
root folder. In general, Google doesn’t like to index pages that are more than about
three folder levels deep. Ideally, all pages should live in the same folder as your
home page or at most be one level deep.

Don’t Bloat Your Pages With Code

Google has a time limit that it sets to crawl sites. If you have a very large site, Google
may not have time to crawl all pages during the first pas. This problem can be
minimized if you keep the code of your web pages lean and clean.

This also makes your pages download faster, which improves the visitor experience.
Studies show that you lose 10% of your visitors for every second it takes your page
to load. After about 5 seconds, you might as well forget it – most people will have left
your site. Remember there is a still a percentage of people who still use dial-up
modems – particularly outside of the US. This will not change real soon, despite the
hype over broadband.

Try not to have more code than visible content (text) on your page. Frequently web
pages are comprised of over 80% JavaScript code and style code (hard-coded font
information or inline style blocks). Right-click a web page and then click View
Source – you will be amazed at the amount of code present. Although Google
ignores such code, it still takes time for it to wade through to find your content.

Put your JavaScript code in a separate (.JS) file and link to it from the <HEAD>
section of each web page, as follows:

<script language="JavaScript" type="text/javascript"

In addition, create a stylesheet file (.CSS) file that contains your font information and
link to it also.

<link rel="stylesheet" href="YourFile.css">

No comments:

Post a Comment