Brightpearl Blog

Speed up your homepage and compete with the big brands

The homepage of your website is probably your most important online asset for attracting visitors and converting them to customers and it’s really important that it loads quickly. You can spend hundreds of hours and a lot of money on SEO, but if it takes 20 seconds for your homepage to load, your potential customer will give up and just move on to the next link in Google’s search results. In actual fact a fast website will end up helping your SEO!

This is a real opportunity for small businesses because the homepage of most big websites is a furious battleground between all the different departments in a corporation: the sales team want as many products as possible on there, the design team want beautiful high resolution photos and the marketing team want all sorts of tracking widgets to monitor customer behaviour. The end result is a big bloated page which takes forever to load and takes months of wrangling to change.

As a small business owner, you’re in complete control of your homepage and can change it whenever you choose. To make the most of this advantage, I’ll need to give you a little bit of technical background, but feel free to skip ahead to our top ten recommendations at the end of this article!

Anatomy of a webpage

It’s easy to think of a webpage as a single file, like a Word document, but in fact each page can be made up of dozens and dozens of separate files.

Generally speaking, there are four types of files required to build a typical page – an HTML file, some images, one or more CSS files (stylesheets) and any number of Javascript files.

- The HTML file contains your text and the basic structure of a page as well as containing instructions on where to find all the other files your web browser will need to display the page correctly.
- Images are the pictures you see on the page.
- CSS files, or stylesheets, control the font sizes, colours and general design of the page.
- Javascript files can be used to add interactive features and customer tracking to the page.

When you click on a link in a web browser, the first thing that happens is your browser loads the HTML file for the page you want to see. It then scans through the HTML file to see which other files it needs to load. Until all these other files are loaded, your page won’t look or behave as it is supposed to. So the trick is to make sure all those files can be loaded as quickly as possible.

Top ten ways to tune your homepage

1. Give your homepage a physical

Your browser has built in tools to help you tune your homepage. Open up Chrome and go to your homepage. Hit F12 (or cmd + alt + j on a Mac) and press the ‘Network’ icon.

If you then refresh the page by pressing F5 (cmd + R) you’ll see a breakdown of all the files on your page and the time it takes to load them. At the bottom left you’ll see the number of files (requests) and the total size of your page.

The red vertical line on the timeline represents how long it took for your page to be loaded and completely ready to use. The holy grail is 1 second or less!

2. Put it on a diet

The easiest way of reducing the time taken to load your page is to reduce its size. You should aim for your homepage to be no more than 300-500kb in size (for reference, Google’s is about 120Kb). Make sure your images have been saved using the ‘optimise for web’ feature in Photoshop or whichever tool you prefer.

3. Host your site close to your customers

If your customers are mostly in North America, make sure your website is hosted in North America. You’ll be surprised at how much extra time it will take to load a file hosted on the other side of the planet! This is called latency and will affect every file needed to build your page.

4. Cut down on tracking

User tracking features, analytics and affiliate tracking schemes are a major contributors to a page feeling slow. Whenever possible, try and stick to a single tracking mechanism on your homepage.

5. Keep it simple…

The more files on your homepage, the slower it will be. If you look at pages optimised for speed (like the Google homepage) you’ll see there are very few images.

6. …but don’t forget the words

However, your homepage is very important for SEO and you’ll need to remember to have all your key SEO phrases in place.

7. Set your content free

Consider using a Content Distribution Network (CDN) like Amazon’s Cloudfront. These can be used to serve your images, stylesheets and Javascript files from Amazon’s servers rather than yours. This has several benefits: less pressure on your web server, content served from servers close to your customers and encouraging your browser to load more files in parallel.

8. Reduce, reuse, recycle

If you find yourself using lots of different Javascript files, consider merging them into a single file and ‘minifying’ that file.

9. Haven’t I seen you before?

If you use the same image or Javascript file again and again, encourage the browser to ‘cache’ those files so it doesn’t keep downloading them. This should be done automatically by your web server, but check in Chrome’s timeline. If the file is grayed out, it was found in the browser’s cache.

10. Stick to your guns

As your company grows, you will start to get the same pressures from sales, design and marketing as the big brands do. They will all want a piece of your homepage, but make sure that speed is always your primary goal.

Improved Page Titles and URLs for SEO

Pearl are pleased to announce that websites and ecommerce stores using the Pearl platform should now benefit from a free SEO boost courtesy of a few developments completed this week affecting page titles and link generation. These changes will be rolled out to all clients over the next few days and cover two main areas:

1. Page Titles

The single most important factor of SEO is the page title. The page title is shown at the top of your Internet browser window and as the main link to your site in search engine results pages (SERPs). Page titles in Pearl now show just the category title for category pages and just the product name for product pages, where as previously the page title would show the category tree as well.

page-titles

The benefit of introducing shorter page titles are that the resulting titles are now more relevant to the page and it is clear to see what you are linking to from a search engine results page, thus encouraging more click throughs to your site.

2. Page URLs

The Page URL is the address that you put in your Internet browser to get to that page. Pearl already supports friendly URLs as outlined in the Search Engine Optimisation page of the Pearl online documentation. The changes we have made affect the way links are built to reflect the category structure of your site.

For example the “Web Based CRM” page on the Pearl website. The original link to this page would have been:

http://www.thisispearl.com/web-based-crm-c-299_301_373.html

Although this is a perfectly valid link to that page, the “Web Based CRM” page is actually a part of the Customers category, which in turn is part of the Features category. The new style Pearl URL structure takes this in to account and will now generate links to the “Web Based CRM” as follows:

http://www.thisispearl.com/features/customers/web-based-crm-c-299_301_373.html

The benefit of this style of URL is that search engines can determine relationships between pages by grouping them in to category levels. In this example any other pages found with /features/customers/ in the URL will be assumed to be related to the “Web Based CRM” page.

This grouping comes in to it’s own when products get involved. Previously Pearl would always generate links to products at the top level of your website domain. Now with our improved URL generation all of your products will have URLs that show them within their correct category.

Canonical Links

While on the subject or URLs it is a great time to mention the concept of “canonical links”. A canonical link is a hidden field on category and product pages that can tell the top search engines (Google, MSN and Yahoo) where the definitive version of that page exists. The aim is to identify which pages are duplicates of content that may be somewhere else on the site.

Going back to the previous example we saw that the two links shown are both valid and that they both show the same content. The problem search engines have is that because the URLs of those pages are different there is a possibility that both pages may be indexed and shown in the search engine results pages.

You might be thinking “surely the more pages I have listed, the better my rankings?” but the truth is quite the opposite. Many search engines apply a “duplicate content penalty” which can cause one or both of the pages to drop rankings in the SERPs.

By applying a canonical link to both the pages the search engines will be able to determine which URL is the correct one. In the latest version of Firefox if a canonical link is found on a page a new “C” icon will appear in the address bar.

canonical-links

If this icon is grey it indicates that the page you are on is the same as the one listed in the canonical link. If the icon is blue that means you are on a duplicate page; clicking the blue icon will take you to the canonical page.

More information about canonical links can be found at the Google Webmaster Central Blog or if you prefer to watch a video try the Canonical Link Element presentation by Google engineer Matt Cutts on YouTube.

XML Sitemaps

As well as tidying up links that are generated within Pearl we have also tidied up the links in the XML sitemaps. A sitemap is a list of page URLs for your website presented in a format that is easy for search engines to read. You can see the sitemap for your pearl site by tagging /index.php?p=sitemapxml to the end of your domain name. For example the Pearl sitemap can be found at:

http://www.thisispearl.com/index.php?p=sitemapxml

Page links are now generated in the same way for on-page menus, canonical links and XML sitemaps. This allows for much tighter consistant linking throughout Pearl hosted websites, which in turn makes things a lot easier for the search engines to spider your website.

Summary of Changes

To round up what we have discussed here is a summarised list of what has changed:

  • Page Titles are now shorter and more relevant
  • Page Links (URLs) now show pages and products within their relevant categories
  • Canonical Links added to category and product pages to reduce duplicate content issues
  • XML Sitemaps now show the same page URLs as the canonical links.

It’s also a good point to mention that there is nothing you need to do to benefit from these changes, as they will happen automagically. It is also key to note that none of your existing links will be broken as we have not changed the way that Pearl handles the older style links. In situations where an old style link is loaded your visitors will still see the page they expect, and links from that page will be rewritten to show the new style links. Search engines will also know what to do as they will detect the new canonical link and after a while will start using that instead.

If you have any further questions or are experiencing difficulty with your Pearl system please raise a ticket via the Pearl helpdesk system.