How to make your web pages load fast
Slow web pages that take a long time to download annoy the visitors. Even you may have faced the situation where you have gone to a site, waited for a few seconds and then given up before the page has downloaded. It is true that your readers will not wait for a long time and wait for your pages to load completely. In order to hold your audience and not ward them off, you need to improve your web page speed.
In order to make your web pages load fast, you should consider the following factors:
- Images: To improve the speed of your web pages, you should optimize your images. If you are able to keep the size of your images within 10 KB, your images will load fast. Though adhering to this size is a difficult task, especially with animations, you will reap rich rewards with respect to faster page downloads if you can manage to do this. Once your images are optimized, specify their height and width in the HTML image tag. This will enable the browser to open the web page while the image downloads in the background..
- HTML: After bringing your images down to a fair size, you should concentrate on making your HTML clutter free. Try streamlining your HTML by removing all the unnecessary attributes and extraneous tags. For example, in a table, if you want the cellspacing and cellpadding to be 2, you can leave out these attributes as this is the default for a table.
- Page size: Even with clean HTML and images of small size, you can have a page cluttered with too much of information that takes forever to download. It would be a good idea to keep the total size of your page (including images) to about 30 KB for a speedy download. As almost 50% of the web pages are 32 KB or less in size, you will be in a favorable position.
- Tables: A common cause of slow pages is nested table. As these tables improve the layout enormously, many web pages use them. However, the browser takes a long time to render these pages as it has to work harder to display the page with multiple tables in tables. When it takes a long time for the page to display, it's not that the page has not downloaded. The real reason for the long download time is that the browser cannot show a part of the page in the tables until it has found a way to render all the nested tables.
- Advertisements: Advertisements are often served from a server different from that of the web page. This can affect the loading time of your pages if that server is slow or down.
- Web Server: If the loading time of your web pages is still slow after you have optimized your HTML and images and kept your page size within the acceptable limit, it’s time to check your web server. If you feel that your server is getting hits in large numbers that’s beyond it’s capability to manage, you should think of increasing the bandwidth or upgrading to a service provider, which can handle the kind of traffic that your site is getting.
|