Web design

Reducing Code Bloat for SEO

A problem with some of the ‘usual suspects’ in e-commerce website development is the code. Not that it doesn’t work – everything is as it should be – but there’s so much code that you risk harming your SEO strategy without doing something about it. Here are some simple tactics I’ve employed for recent Cubecart websites

1. Where is the sidebar?

In the global website template, the order of page elements was: head, sidebar, content, footer. Content and sidebar were divs floated to the left and right respectively, but in terms of a search engine spider, the sidebar’s contents (in this site’s case – the basket) preceded the main content, and therefore considered more important. One simple reversal has no effect on design to the end user but changes the complexion of a search engine’s interpretation completely.

2. Strip unnecessary javascript

Every little helps – if your site is referencing javascript that isn’t used, get rid of it. though the few lines of code you save have a negligible effect on SEO, you could be saving valuable seconds in load time. You can always put it back in if that lightbox or scriptaculous effect is absolutely necessary.

3. WYSIWYG code bloat

Cubecart’s page editor is quite guilty of embedding superfluous <span> tags for page styling. Particularly on front page and category pages in an e-commerce site, code bloat like this ought to be stripped.

One Comment

  1. Posted May 7, 2009 at 5:25 pm | Permalink

    Cleaning up code is quite important. A majority of website shave redundant code which when reduced can improve the efficiency of teh website, reduce errors and warnings and above all improve the SEO for the website. Using css based design is a basic requirement of a good search engine optimised design. There is little or no reason to use complex table based design code for your website any more. Some time ago, most open source systems were table based so we did not have much of a choice. However new versions of most web based software now support table-less designs.

Post a Comment

I welcome your thoughts and comments. Please note that comments are moderated, therefore your comment will not appear immediately. Comments may be edited or deleted at my discretion. For more information please consult my comment policy.

Your email is never published nor shared. Required fields are marked *

*
*

Comment moderation is enabled. Your comment may take some time to appear.