02 August 2011

The importance of website loading times

You always hear webmasters talking about how fast their site is and how they can speed it up even more. But why is that so important?
Why Speed Matters
If you've ever visited a website that takes forever to load, you know the answer to this. Visitors leave before you've even had a chance to convince them you have what they're looking for. Google has taken this one step further by including it in their list of ranking factors.

So, how fast a page loads does really sort of matter. Not that 1/100ths of a second will make that big of a deal, but if you can improve your load time and your code, there's no reason not to spend some time on it.

Tricks for Speeding Up Load Times


You can do tons of little things to speed up a page's load time:

Caching -- Plugins and tools such as WP Super Cache turn PHP into quick HTML, to ease the burden of heavy files and display pages faster. It's effortless and only takes a few seconds to set up.

CSS Sprites -- If you're a little more familiar with code, or have someone available to help tweak your code, you can consider using CSS sprites. Basically, this trick combines all of your graphics into one file and positions them correctly using CSS. You can find out more about CSS sprites on Spiced2.

JavaScript -- While pretty, JavaScript can eat a lot of resources and require a lot of time to load. By eliminating as much of it as you can, and minimizing the scripts on the page, you can quickly cut down load times. Also, because CSS can load at the same time as the rest of your site, move your JavaScript files after your CSS files. Rusty Brick also suggests delaying the loading of resources until after the visitor mouses over them. You can find out more at BetterExplained and JavaScript Guides Advanced.

Redirects -- While often necessary, redirects can really inflate page load times. Save yourself and the visitors the time by eliminating them where possible. As an added benefit, you'll also find you can deter people from linking to the wrong URL.

Images and Videos -- These things can eat up a lot of resources too. Get rid of any that aren't necessary (If your site is slow, a ton of ads in the sidebar is often the culprit). Then, compress and shrink them to the right size.

Analytics Programs -- While extremely helpful and useful, analytics can take a long time to load up. Save yourself some headaches by eliminating the code for any analytics programs you're not using. You also may want to switch to an asynchronous tracking code to speed things up.

Hardcode -- While all the gidgets, widgets, and doodads can be really nice, they can also require a fair bit of time to load. By hardcoding things like the header, footer, and sidebars, you can eliminate this time by causing it to load with the rest of your site.

Databases -- Just like trying to find something in a messy room, a messy database takes a lot of extra time to use. Clean it up, fix it, and optimize it regularly. You'll find plugins that do this, as well as an option to do this in phpMyAdmin.

Hosting -- If your host is slow, optimizing your website isn't going to help you any. And chances are if you went cheap on your hosting, it's slow. You may even consider setting up and using a proxy server to act as a go between your host server and your site visitors.


For a FREE SEO scan of you website, including speed test, contact Scream Media today on 021 559 0800 or sue@scream-media.co.za

2 comments:

  1. More loading time of website will affect getting more traffic to our website.Because users does not like to spend the time to open the website if that have high loading time.
    Web Designing Companies | Webs Design Companies

    ReplyDelete
  2. Quick loading websites are make more interaction to the visitors. By providing affordable and well structured sites improves visibility.

    Website Designing Company Bangalore | Web Designing Companies Bangalore

    ReplyDelete