Published On :15 February,2008
Gone are the times when the internet used to take forever to load. But even instantaneous page loads are yet to be the norm.
Fast loading pages are imperative to a good website design and staking this would just mean losing visitors. Cause no person sticks to a page that takes more than 8 seconds to load. And this is an established fact.
Reasons for a slow website
Popular belief spells that a website runs slow because of the file size of the elements in it. But actually, that is just one of the many responsible factors. What slows down a website can be
File size of the HTML document
File size of document dependencies such as scripts, images, multimedia elements etc.
Complexity of the HTML
Speed of the connection of the user
Speed of third party servers
Response time of DNS servers
Speed and response time of the user computer
Tips for a faster website
There are certain things that you can do to overcome the technical factors and get a quick response web site.
With quality intact, optimize all the HTML content of the website alongwith the dependencies. All the comments and line breaks in the HTML documents that is a part of publication process should be ripped off.
You can reduce the number of dependencies by using the least amount of file includes. Multiple scripts could be collated into one and all the images can be loaded at once using CSS sprite techniques.
Do not include third party content from servers. Instead use the local RSS feeds. This way, you would not have to deal with DNS server delays and moreover, you are independent of the other server if in case it goes down.
Define dimensions for images alongwith their container elements. This ensures that the first rendering of the page is correct and it doesn’t jump around when the image is loading.
Keep the large dependencies like massive scripts etc towards the end of the document. This way, the rest of the page is displayed before the browser loads them. If large java scripts are loaded at the beginning of the document then the server waits with rendering until they are fully loaded
Some special speed requirements!
Reducing the number of file includes obstructs the maintainability of the product. To maintain a consistency in the look and feel of the website with different pages, different styles should be kept in own includes and added to the only those pages that make use of them. There could be one base CSS include, one for the homepage, one for article and so forth.
There are technical ways too
Tacking the onload problem
Unless the scripts are embedded in the body of the document, they would need to be started when the document finishes loading. This gives rise to delays and subsequent problems. The reason for this delay is the way browsers load, parse and render documents.
How to avoid the on-load problem with on-demand pulling of content
These ideas will help change your website or application and make it more responsive!
Michael Henderson, a professional web designer and SEO expert. He has worked on many projects for the web design company in India and Overseas. His experience understanding of web technologies, web applications, search engines WWW standards made him act as consultant for clients for proposing optimal web based solution to back there business needs and an adviser for web developers web designers for developing pages which meet W3C standards in all respects.