No matter how great your website design looks, if it loads too slowly visitors are unlikely to stick around. In this article we look at 12 ways you can decrease the load time of your pages. To see how fast your pages load in comparison to other sites, visit Self SEO. With this free tool you can see the load times of up to 10 URLs at one time.
1- Use fewer images and graphics
The number of images and graphics on a web page has a direct influence on its load time. A page with just text will load quickly, while a page full of images will take much longer. Consider eliminating unnecessary pictures that don’t add much value to your site. Remember that photographs aren’t the only images on a page. Titles and logos often use images to feature a more attractive font than simple text can produce. All of these can add up to create a drag in your load times.
2 - Reduce image file size, dimension, or resolution
Once you have determined which images are necessary for your pages, consider reducing the file size of the image by 1) decreasing the dimensions, or 2) decreasing the resolution. Graphic editing programs such as Photoshop and Paint Shop Pro will allow you to easily resize the image or decrease the resolution will maintaining the same dimensions. Both options will result in an image with a smaller file size and faster loads.
3 - Predefine the size of your images
Use HTML to tell the browser how big the image should appear. This not only helps your page load time, but it also ensures that your images will appear how you want them to appear.
4 - Re-use the same images whenever possible
Using cache your visitor’s browser will remember images that have been seen on other pages throughout your website. When images are found in the cache the load time is significantly reduced. If images from your homepage can be used on your secondary pages, the load time of those secondary pages should be reduced.
In order to take advantage of this you must use the exact same image file on multiple pages. For example, if image1.jpg is used on your homepage, image1.jpg must be used on your secondary pages in order for this to work. Changing the size of image1.jpg and saving it as image2.jpg will cause the browser to recognize it as two different images. If you want to use a different size of image1.jpg, you can do so by specifying the size of the image in your html rather than by using a different image file.
5 - Avoid animated/moving graphics
Animated GIFs create larger page loads and are often unnecessary to the design and appearance of a page. If these types of graphics are used they should be kept to a minimum.
6 - Convert JPG files to GIF files when possible
JPG files contain more colors and have larger resolutions than GIFs. Images that are used for titles and logos can normally be saved as GIF files without sacrificing any image quality. Photographs should be left as JPGs because of how many colors they include.
7 - Use valid HTML and CSS code
By validating your code you will be certain that it is ready for the browser. Invalid code will not always slow down the page loads, but by having valid code you can ensure that these types of errors will not cause problems with the speed.
W3C provides a tool for validating HTML and for validating CSS.
8 - Decrease the size of your pages
Smaller pages will generally load faster than larger pages. If your pages are abnormally large consider breaking them up into several smaller pages.
9 - Avoid unnecessary code
Using programs that are not exclusively intended to create websites can leave your pages with extra, unnecessary code. Although the page may have the same appearance as a page that is created with minimal code, the internet browser will have to take longer to read through the unnecessary code. Hand coding or using a program such as Dreamweaver will produce the best results.
Use a HTML Tidy to automatically clean up your code.
10 - Use CSS-based design instead of table-based design
Table-based design uses more coding than CSS-based design and therefore a page that uses table-based design will usually have a longer loading time. CSS allows the designer to separate the content of the page from the design and ultimately use less code to create the same appearance.
If you must use table-based design, avoid using nested tables. By using several smaller tables the browser will not have to wait for the entire page to load before displaying parts of the page. By using multiple tables, each table will be displayed as soon as possible.
11 - Use separate CSS files rather than containing the CSS in the page
CSS can be contained inside the head tag of a page or it can be contained in a separate document and linked to specific pages. Keeping the CSS code in the head tag of each page will require the browser to read more when each page is loading (plus it makes changes in your CSS much more difficult).
12 - Avoid excessive use of JavaScript and Flash
Many websites use JavaScript and Flash in one form or another. While they both have many benefits, they should be used in moderation. Excessive JavaScript or Flash will require the browser to handle more code and will slow down page loads. Use the scripts that are most important to your website and leave out those that are extras.










18 comments from readers
1 Average Joe Blogger Aug 5, 2007 at 7:57 pm
Good set of tips.
2 10 Ways to Design for Impatient Visitors << Vandelay Website Design Aug 7, 2007 at 9:35 pm
[…] The #1 factor in determining whether impatient visitors stay on your site or leave right away is the amount of time it takes for your pages to load. Even a beautiful site with great content will drive impatient visitors away with slow loading pages. In this post I won’t go into the factors that influence the speed at which a page loads, but you can read Designing Pages to Load Quickly for that information. […]
3 Blog Haber » Blog ArÅŸivi » Daha hızlı yüklenen web sayfaları tasarlamak Aug 15, 2007 at 4:41 am
[…] Åžuradaki sayfada web sayfalarının daha hızlı yüklenmesi için 12 tavsiye yayınlanmış. Tavsiyeler daha çok resimler/grafikler üzerine yoÄŸunlaÅŸmış. Bahsedilen 12 tavsiyenin baÅŸlıkları şöyle: […]
4 Ethem Sak » Daha hızlı yüklenen web sayfaları tasarlamak Aug 15, 2007 at 11:40 am
[…] Åžuradaki sayfada daha geniÅŸ bilgilere ulaÅŸabilirsiniz […]
5 Droid Aug 16, 2007 at 9:55 am
Useful tips, I just want to say something about this:
“6 – Convert JPG files to GIF files when possible”
PNG is far better than gif in graphics, supports better color deph and transparency too.
Photos in jpg definitely.
See ya.
6 Vandelay Design Aug 16, 2007 at 4:43 pm
Droid,
You’re right, PNG is a good option. I think PNG files are in between GIF and JPG in size. The transparency is the best feature in my opinion.
7 Droid Aug 16, 2007 at 7:25 pm
It is necesary to make some comparations while y´re generating images from FW or PS
In some cases png beats gifs in weight.
8 9 Essential Tools for Bloggers << Vandelay Website Design Aug 29, 2007 at 9:25 pm
[…] In order to make sure that your visitors are able to access your pages quickly, you will need to test their load time. Slow-loading pages will cause many readers to leave your site before ever seeing any of your great content. This is especially important for blogs since many of your visitors may be coming for sources like social media websites, where visitors already have a short attention span. […]
9 How to Successfully Switch Your WordPress Theme Without Throwing Your Computer Through the Window << Vandelay Website Design Sep 5, 2007 at 10:55 pm
[…] The page load time is very important if you want to keep visitors on your blog. We’ve all been to very slow loading websites that have caused us to leave and go somewhere else. It would be a shame to set up a great new, attractive theme only to find out that your traffic is down because of slow loading pages. Use the page load speed tester from Self SEO to compare pages on your test blog to pages on your real blog (which is still using your current/old theme). If you’re having problems with the load time, see our article Designing Pages to Load Quickly. […]
10 What Makes Good Blog Design? << Vandelay Website Design Oct 27, 2007 at 2:27 pm
[…] In order to immediately catch their attention and avoid having them click off of your site, your pages should load quickly. This is especially important you plan to use social media to generate traffic. Some blogs are […]
11 When is it Time for a Re-Design? << Vandelay Website Design Oct 28, 2007 at 2:07 pm
[…] probably paying for traffic that leaves before ever seeing your pages. (Read our article Designing Pages to Load Quickly) 9 - Invalid […]
12 21 Factors that Influence the First Impression of Your Website’s Visitors << Vandelay Website Design Nov 27, 2007 at 4:56 pm
[…] of us are very impatient and slow loading pages will not make us want to return. On the other hand, pages that load quickly will encourage visitors to navigate through your site knowing that they won’t have to wait very […]
13 21 Factors that influence first impressions of a website « Great Ideas in Teaching Nov 29, 2007 at 5:43 am
[…] of us are very impatient and slow loading pages will not make us want to return. On the other hand, pages that load quickly will encourage visitors to navigate through your site knowing that they won’t have to wait very […]
14 21 Factors that Influence the First Impression of Your Website’s Visitors - Best Resource for News & Articles Mar 18, 2008 at 8:31 pm
[…] of us are very impatient and slow loading pages will not make us want to return. On the other hand, pages that load quickly will encourage visitors to navigate through your site knowing that they won’t have to wait very […]
15 Algumas Dicas de Como Criar Páginas Que Carregam Rapidamente « Web Design & Design Gráfico May 1, 2008 at 9:27 am
[…] Vandelay Design […]
16 10 Dicas de Como Criar Sites Que Carregam Rapidamente Jun 3, 2008 at 10:07 am
[…] Vandelay Design […]
17 Daha Hızlı Yüklenen Sayfalar Tasarlamak | Sinerjik Günlük Jul 20, 2008 at 6:35 am
[…] Kaynak […]
18 Useful InformationI found about Blogs at John Khilla Jul 30, 2008 at 10:53 pm
[…] of us are very impatient and slow loading pages will not make us want to return. On the other hand, pages that load quickly will encourage visitors to navigate through your site knowing that they won’t have to wait very […]