• Recent Posts

  • Recent Comments

  • Browse by Tags

3+1 Ways to Make Your Website Load Faster

This item was filled under [ The Web ]

Nothing annoys a visitor more than a slow loading website. With the proliferation of broadband, most of us have become used to websites loading within a few seconds. Many webmasters spend hours trying to optimize their website for search engines but forget to optimize their website for human beings. In this article I would touch upon three (plus one) basic steps involved in making your website load faster. I have not discussed solutions that involve installing new software on your webserver or making other modifications to the system.

Compress Images

This is the simplest yet often overlooked step. Proper compression can often reduce file size by 50% or even more without any perceptible quality loss. I use Irfanview (Freeware) for this purpose. I had covered this topic in one of my previous articles (Ten Things You Can Do With IrfanView). Here is a short guide to compressing images in IrfanView :
Arrow JPEG/GIF Images : Open the Image and press “S” (or select “Save as” from File menu) to bring up the Save as dialogue box. Check the �Show Options Dialogue� check box. Set the appropriate quality level and save the image. A value between 65 and 70 generally does a job.
Arrow PNG Images : Once again while saving bring up the “Options dialog”. Tick the option to “Use PNGOUT Plugin”. The default settings work quite well, however it can be time consuming. If you are in a hurry limit the maximum number of passes.

The biggest advantage of Irfanview is that it supports batch operations, so you can compress hundreds of files at a go. Although IrfanView works well with normal images it doesn�t work with animated GIF files. For animated GIF files you can use Spinwave GIF Cruncher. However you will not be able to download the most optimized versions of your images unless you are a Spinwave member. Alternatively you can give GifWorks a try . The “Reduce Colors” option reduces the colour palette thereby reducing the image size.

Selecting the right image format also helps. JPEG works better with photographs and images without text. In such cases using PNG is recommended. Use GIF when you need transparent background or animation. GIF and PNG are also recommended for simple diagrams.

Compress JavaScripts

Believe it or not Javascripts are often the biggest contributor to the page load time. I have come across websites using more than a dozen Javascripts. This adds a significant amount of bloat. The solution here is to compress the js files and reduce their size. There are several online services available that would do that job. I would recommend Dojo’s Shrinksafe (another implementation based on Dojo Toolkit is available here) and Packer Js Compressor. However these services dont always work perfectly. Sometimes you would need to manually debug the output file. And do not forget to backup the original file as you may need it later.

JavaScripts : Revisited

Even after compressing the js files the problem is only half solved. There are still two major issues you need to deal with. The first drawback of having multiple js files is the large overhead time. Every time the browser comes across an external file it has to send a request to the server and call upon the file. If the number of external js files is large this can cause a significant amount of delay. The situation is made worse by the fact that browsers load JavaScript files sequentially (i.e. one after another). Matt Dibb found that even on his high speed connection Firefox took 3.5 seconds to load all the JavaScripts used by Digg.com Unfortunately there is no easy and full proof solution to this problem. Here are three things that you can try :
Arrow Try to merge as many multiple smaller js files as possible into a single large js file.
Arrow Move non-essential js files (eg. tracking js used by web metrics services) to the bottom of the page (near the end of ), so that they are loaded after the main content.
Arrow Deepak from Blogger Hacked has created a JavaScript to load other JavaScripts asynchronously. You can give that a try.

Bonus Tip

This is a really simple trick. The trick is to always specify the dimensions (height and width) of images. This lets the browser know exactly how much space needs to be reserved for the concerned image file. This inturn makes the page load more smoothly thus creating the impression that it�s being rendered faster. It also eliminates another annoying phenomenon � auto-scrolling of text as images above it are loaded by the browser.

These were rather generic suggestions which should reduce the page load time of most websites. There are a few more options you can try like cleaning up your css code or reducing the number of unneccesary buttons/widgets on every page. If you are still not satisfied feel free to digg deeper and diagnose problems specific to your website. The best tool to identify the speed breakers is Firebug extension for Firefox. Firebug displays exactly how a webpage is loaded and how much time is spent in downloading each object. If you do not have Firefox installed you can use Octogate Site Timer. However, Firebug is a lot simple to decipher and is highly recommended.

Did this article help you in reducing your website’s page load time? Do leave you comments/suggestions/criticisms.

This post was written as a part of Daily Blog Tips : Blog Project Three

Popularity: 14% [?]

Share This Article :
Stumble Digg Reddit Technorati Delicious
<strong>Email This Post</strong> Email This Post

Enjoyed this article?
 
Subscribe to Full Feed RSS to get instant updates
You can also Subscribe to my E-mail newsletter and stay updated

Related Articles
TemplateWorld – Website Template For Everyone
Six Ways to Bypass Torrent Connection Blocking and Throttling
How Much Is Your Website Worth ?
Opera Mini Just Got Faster – 4.2 Beta released
Two Tools for Hiding Data in BMP Images
Blog Action Day 2008 – Five Ways You Can Make A Difference
Four Free Online Favicon Generators
Opera Turbo to SuperCharge Browsing on Slower Connections
Find and Remove Duplicate Pictures with Visipics
Boxed Art – Premium Templates

Related posts brought to you by Yet Another Related Posts Plugin.

You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

34 Comments on “3+1 Ways to Make Your Website Load Faster”

  • 8 July, 2007, 17:57

    Nice tips, it is really helpful for web developers to develop site which loads fast, as still there are many people using dial up to access net.

    Came to know abt this post from daily blog tips. Here is my entry

    http://www.helloashok.com/contest/three-reasons-why-i-like-contest/152/

  • 8 July, 2007, 18:21

    Yea . nice tips there pallab.
    One surprising thing though .. FF ? really ?? hmm

  • 8 July, 2007, 18:29

    Nice post. Optimizing images is always needed. They tend to take up lot of time to load.

  • 8 July, 2007, 18:41

    Aman wrote

    One surprising thing though .. FF ? really ?? hmm

    The correct acronym for Firefox is Fx and not FF.
    And well Firebug is really awesome.
    And regarding my preference of Browsers : I want to use Firefox but it’s extremely stupid interface keeps putting me off. My ideal browser at the moment would be Maxthon with Gecko rendering engine or Opera with an API.

  • 8 July, 2007, 21:37

    One thing I will note is that even if you don’t prefer to use a compressor for images, some image editors save smaller images than others. For instance, Photoshop’s .PNG images are often noticeably larger than those created with the GIMP.

  • 9 July, 2007, 5:12

    The “Save for Web and Devices” module of PS generally does quite a good job at compressing images if you select proper settings.

  • 9 July, 2007, 8:20

    Nice post… good luck to you in the contest.

  • 9 July, 2007, 12:42

    Thanks David.

  • 9 July, 2007, 12:49

    Hey cool post. Good luck to you too. Gotta compress CSS.

  • 9 July, 2007, 16:33

    Compressing everything might end up giving you problems in the future.

    Some CSS compression envolves removing spaces between words so save bytes but what if you need to edit that css file? Can you imagine the kind of mess you’ll find?

    Same with javascript, html, etc…

  • 9 July, 2007, 17:00

    Some CSS compression envolves removing spaces between words so save bytes but what if you need to edit that css file? Can you imagine the kind of mess you’ll find?

    The files generated by cleancss using standard settings are readable, but the files become harder to read as compression level is increased.

    Thats why I recommenced taking a backup. You should always have a copy of the original file (non-optimized) on your harddisk.

  • 11 December, 2007, 8:17

    Yes these tips are excellent. The biggest problem is size of the file and images or flash. It takes lot of time while loading the page. I think if we make dynamic pages then the speed increases but still other files should have less size so that they can be downloaded faster.

  • 8 October, 2008, 23:48

    I would also recommend to use this online free tool – http://Site-Perf.com/

    It measure loading speed of page and it’s requisites (images/js/css) like browsers do and shows nice detailed chart – so you can easily spot bottlenecks.
    It’s very detailed and accurate, supports a lot of features like Keep-Alive and HTTP-compression.

    Also useful feature is that this tool can measure quality of internet link of your server.

  • 7 November, 2008, 19:54

    Finally found got a good article to make my site faster.Thanks man.

Trackbacks

  1. University Update - Firefox - 3+1 Ways to Make Your Website Load Faster
  2. Listikalz VI - Rewarding Listikal.com’s Regular Readers
  3. Blog Project Three List | Romantic Ideas: Romance Tracker
  4. Blog Project Three: Final List
  5. Dailyblogtips contest entries » Hello Ashok!
  6. Blog Project Three: The Results | Kyle's Cove dot Com
  7. Blog Project Three Final List! | My Brain Dumper!
  8. Johan; thinking out loud.
  9. Blog Project Three: 114 Blogs Participated
  10. DailyBlogTips Blog Writing Project Three Entries | Web Business Blog
  11. Blog Project Three : My Top 5 » Not Just Another Blog
  12. Blog Project Three : My Favorites | techdeep.in
  13. Top Results from the 3 Blog Project
  14. Madhur Kapoor’s Blog » DailyBlogTips Blog Project Three
  15. Blog 3 Project » What Would Dad Say
  16. Blog 3 Project » What Would Dad Say
  17. My top three : 60 IN 3
  18. The Best Of The Blog Project Three Contest
  19. 3 From Every Tree: My Favorite Blog Project Entries | Adam Pieniazek
  20. Blog Project Three Has Some Winners

Leave a Comment

CommentLuv Enabled