10 Quick Tips For Making Your Large Graphics Load Faster
There’s nothing worse then having to sit and wait while the images are loading on your web pages. We’ve become a society of convenience with microwaves, instant soup and lightening fast servers. We want things in the blink of an eye.
Your visitors expect nothing less when they land on your site. You’ve only got a couple of seconds before they hit that back button…. and their gone… to a faster site that will give them the information they want instantly!
Here are 10 quick tips for decreasing the load time on your graphics.
1. Use Height and Width (Size) Attributes.
Example: width=”144″ height=”259″
Every time a browser loads a web page it looks for the the height and width attributes (size) of each image in your HTML code so it knows how to lay out the text and the graphics on that page.
This all takes place instantly behind the scenes. When the proper attributes are used, the browser loads the text before the graphics. This is good. It’s faster this way.
If you don’t use the attributes, it causes a delay waiting for the browser to download the images first and then lay out the text. The browser has to play catchup. It can’t load text onto the screen until it has figured out the exact size of the graphics.
Make sure to use attributes on all your graphics, even those little tiny ones, like buttons and bullets.
2. Size Your Image Correctly
Lets say you’re trying to place an image with a file size of 30k and height & width attributes of 300 pixels wide by 400 pixels high in a spot on your web page that is designed to hold an image sized at 200 pixels wide by 300 pixels high.
To accomplish this you’ve changed the height & width attributes in your HTML code to 200 x 300.
You may think that since the image will be displayed at the lower size (200×300), the file size will be smaller and the image will load faster.
Not true. Regardless of what size attributes you use, that file size is still 30k and it will load at the same speed any other 30k image does.
Use an image editor to change the size of the image to the correct dimensions first. Then use the correct size attributes in your HTML. By resizing the image before you plug it into your HTML code, the file size will be smaller and the browser will load it quicker.
Animations are attention getter but they quickly become annoying. They also slow down the loading of your page.
Limit the number of animated graphics on your page and set your animation at a specific number of repetitions rather than allowing them to loop endlessly.
4. Use the Correct Image Format
If your image is simple with a small number of colors try converting it to a gif format. Good choices for this are clip art, bullets, buttons, charts and such.
A word to the wise. Not all images are suited for the gif format. Complex images, photos or those with enhancements such as reflections and drop shadows don’t display well in this format.
The jpg format is suitable for complex images with lots of color variations. A good example of this is a photograph.
The png format is can be used for either. The high end png format (png-24) produces a beautiful transparent image and maintains any enhancements you’ve included. The file sizes are generally higher so if you’re at all concerned about load time, you may not want to consider the ping format unless you have the software and skills to slice your images. (See Tip #5)
5. Slice Those Images
Image slicing is a technique used to breakdown a large image into smaller pieces to make it load faster.
I use the image slicer feature in Photoshop but there are also many options available to do this if you don’t use Photoshop.
Search for “Image Splitter” – without quotes in your favorite search engine for list of resources for slicing images.
6. Limit the Number of Graphics you Place on Each Page.
If your pages are loading too slow, consider removing some of the images. Keep only those that absolutely necessary.
7. Use Thumbnails
Use a java script to display a thumbnail and load the larger image only when the reader rolls their mouse over the thumbnail.
I use this technique when I have a lot of images I want to put on one page, but the page would be too big if I included them all at normal size.
I got this script from Dynamic Drive. As long as you keep their copyright notice in the html code you can use their scripts at no cost.
8. Browser Cache
Graphics and text are stored in what’s called cache on your hard drive. This makes it easier and quicker to load files that are displayed in your browser. It loads them from the cache rather than over the net each and every time, if it’s available.
To improve your visitors experience, take advantage of their browsers cache. The best way to do this is by not putting identical images in more than one folder, sub folder or directory on your server. If the browser always calls the image from the same folder it loads much quicker.
9. Optimize Your Images
Optimizing your images is a great way to reduce the load time. I generally optimize images I make for my clients to about 60%. I’ve found this to be the magic number that reduces the file to a reasonable size yet doesn’t compromise the quality of the image.
I caution you on optimizing further. Greater percentages of optimization may leave your images blotchy with speckled blocks of color. It will often make your colors look washed- out and you may lose some of fine details.
10. Progressive Optimization
A sneaky little trick I’ve learned is to select progressive settings when you’re optimizing your images.
This doesn’t really make your images load faster, however, they do load first at a very low resolution and continue to load progressively, with more detail, until they are fully loaded.
Your visitor at least has something to view and content to read while the loading process finishes up. This technique works with JPG, JPEG, PNG and GIF, 89 file types.
As we progress into the Internet future there will come a time when our connection speeds are so fast the speed at which web pages load won’t be an issue. News information and graphics will flash across your screen at record breaking speeds. We’ll get there. Maybe not in the next few years but eventually we will. History has already taught us that the technology is here. It’s only a matter of time before we see it.
But until that happens how quickly our web pages load is something we need to take responsibility for.
Copyright © 2008, Heather Colman.
About the Author
Graphic Designer Heather Colman helps virtual assistants, coaches, and other professionals online bring visual impact and depth to their products with custom 3d images and website graphics. Visit her site at: CustomDesignGraphics.com