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.
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.