10 Practices to Speed Up Your Website

10 Practices to Speed Up Your WebsiteDo you like fast websites? We’re sure you do just like search engines and metrics companies that use website load time as a parameter in their rankings. For website visitors waiting is one of the most annoying things on the web. And if in real life speeding is dangerous for you, in virtual world speed is essential for successful website – lack of speed means death for your website.

Nowadays such factors as user experience and user-friendliness are really important and may determine whether your website will succeed in future or not. We should never forget about our big brother Google which considers website load time as a part of their ranking algorithm.

Below you’ll find some tips and tricks that will give wings to your website. Maybe you’ll be confused about some specific terms but we believe that after spending some time on Wikipedia things will become clear for you. Of course we are always glad to discuss this topic in our comments section.

  • Parallelize downloads across hostnames

  • Actually smart usage of this method can give you amazing results. You should remember that most static resources can be parallelized and the main task is to create a balance between all hostnames for all static objects. Anyways the main rule here is that any of your hosts must not serve more than 50%. Remember that the optimal number of hosts is between 2-5 hosts, so don’t misapply it.

  • Use URL paths instead of hostnames

  • The main trick behind this problem is that you need to control the number of multiple properties that are hosted on the same domain. The best solution that will help you to unload these properties is assigning them to different URLs but not hostnames. For example if you need to host your blog than make it website.com/blog instead of blog.website.com. This will help you to minimize DNS lookups and allows more efficient use of TCP reconnections that will reduce the number of round trip times.

  • Optimize images

  • Everything is simple here – you should choose appropriate type for your images (choose wisely between PNG, GIF and JPG) and don’t forget to use image compressor. Also correct specifying image dimensions (width and height) allows browser to perform faster rendering

  • Browser and proxy caching

  • These are best friends for your website – by setting up expiry date you’ll force your browser for downloading the previously downloaded resources from local disk and proxy caching will leave your original remote server in peace by using proxy servers.

  • Put CSS in the Head

  • By placing CSS properties blocks in the header of your website you’ll improve rendering performance. Another important thing about CSS is that you should keep in mind that good old IE is still alive and kicking. This means you may want to avoid using CSS expressions which are good only for IE 5-7 and that other browsers don’t support.

  • Enable compression

  • Using gzip or deflate will help you to reduce the number of bytes sent over the network. Data compression for HTML, CSS and JS files are widely supported by modern browsers and sending this content in more compact form helps to reduce download time.

  • Diminish content of CSS, HTML and JavaScript file

  • Again, it will help you save some bytes. Also you’ll reduce network latency and improve compression.

  • Serve scaled images

  • Scaling the images in a proper way is very useful tool for your website because it reduces the number of unnecessary bytes sent by you.

  • Take care about requests

  • Minimize HTTP request size by using server-side storage for most of the cookie payload and removing unused and duplicate cookies. Avoid bad requests such as broken links or 404 pages. Minimize HTTP redirects from one URL to another – this is another way to minimize round trip times.

  • Correct order of styles and scripts

  • The correct order will optimize the parallelization of downloads and will improve browser rendering time.

Well, this is about it. Those are only the basic ways for improving your website load time but it is a good set of tools for you to have something to start with. In case you’re interested in digging more deeply please feel free to browse the set of recommendations from Google on page load time issue.

Written by Edward Korcheg

Edward has been with TemplateMonster blog since 2009 and is a great fan of social media and web development trends (especially jQuery and HTML5). In fact, HTML5 along with retro trucks are his two biggest hobbies. He dreams of one day coding himself a retro truck using nothing but HTML5 Canvas tag.
on Google+.

Be Sociable, Share!
  • Twitter
  • Facebook
  • email
  • StumbleUpon
  • Delicious
  • LinkedIn
    • Jonathan Galbraith

      Nice… I have found that preloading hover images in a div outside of viewable page can make the effect much more seamless.

    • DoZ

      I do not understand what ‘Parallelize downloads across hostnames’ means…

      • Edward

        Static resources or simply binary objects from your website will be downloaded not from just one source host one after another but from multiple hosts. The most simple example is that one file for a page gets downloaded from one server while another file for the same page is being downloaded from another server at that very same moment.

      • David B.

        Me either

      • http://twitter.com/MaxStrout Max Strout
    • Neo_nemesis01

      I have prestashop and it takes more than 12 seconds to load for some reason, I have talked to the host company and all good at their end because I have another website under the same host and loads in less than 3 secs. I talked to TMonster tech and have not replied after I send the tracert. It would be nice to have a tutorial video on how to do all of these steps. thanks in advance Edward

    • Leo

      Good tips. All of this stems from Yahoo’s Exceptional Performance project. If you’re interested in the techniques they show, have a look at http://developer.yahoo.com/performance/ and also add firebug and yslow to Firefox for analysis of your own sites

      • Edward

        The techniques we’ve mentioned are pretty much common, so it’s no wonder they’re a part of Yahoo Performance project (and a part of similar program from Google, and other sets of recommendations). YSlow is also a good tool though, thanks for pointing us to it.
        However it seems to me that the recommendations of Google are easier to comprehend.

    • Info

      Grazie per i Vostri consigli sempre utili

    • Anonymous

      Great tips, some I haven’t heard before. Keep the good post coming!

    • Pingback: Legitimate Work At Home Employment Opportunities » Website Design-Picking a URL

    • Pingback: Legitimate Work At Home Employment Opportunities » Website Design Tips & Tricks

    • Pingback: 10 Practices to Speed Up Your Website | Agnis Designers

    • Singapore WebDesign

      Best blog compared with the other blogs contain, give more information about this topic in detail with good points for the viewers. Best of luck for the future planning.Thanks