Skip to main content
Email Password   helpLost your password?

Introduction

"We live only to discover beauty, all else is a form of waiting. Khalil Gibran", if you agree with this saying, then you are well aware of what it mean to minimize wait for your web audiences.
Building an HTML page, adding images, CSS and JS has become piece of cake over last few years, but delivering these rich-contents with a Performance to client browser is still a daunting task. This narrow down check list will help you to review your web site to minimize download time.

Note: This article describes only Front-End engineering issues, No Programming/CGI scripting/Data Structure/Database/Multimedia optimization techniques are discussed in this article.

Background

Last year while working on WNetwork.com and Treehousetv.com, I decided to write down experiences I had in my last few years in web development as well as learning from many sources and trying to make a habit of applying them. I have compiled these notes with a hope that every reader will get at least one or two ideas from them.

Laying the Groundwork

In first section we will see Where time is spend, then in second section we would see Why and How that time can be minimized, and then in third section we would summarize some concepts and list tools.

SECTION A: Behind the Scene

This section describes about what happens in between, when user types WWW address and see complete web page before his/her eyes. This would give us an idea about Where time is spend and how to minimize it.

Click so see larger image.
Please note: Above figure may seem complex but DNS look up normally takes less than a second, approx.: 100ms to 900ms. The detail is given to show a complete process.

Click so see larger image.

Click so see larger image.

Click so see larger image.

Click so see larger image.

Click so see larger image.

Now let's get to the point:

SECTION B: Optimize the Load Time

Following guidelines are based on the collection of common knowledge and experience, and application may vary from situation to situation. I would suggest to Log current web site loading statistics and analyze with results after applying any guideline.

1. Reduce number of HTTP requests

2. Proficient <HTML>

3. Proficient <IMG>

4. Proficient <TABLE>

5. Order of components in the page

6. Reduce Request & Response Sizes

7. Reduce Domain Lookups

8. Content Delivery Network: (for specific region)

9. AJAX:

10. Other/Misc:

Summary:

.HTML..........Simplify design.
  .HEAD
    .LINK......CSS file(s) required for page appearance.
    .SCRIPT....JS functions required during page load.
  .BODY
    ...........Small chunks (DIVs, TABLEs), minimize images.
    .SCRIPT....JS functions required after page load, validation etc.
    .PRELOAD...If required, Pre load any images here.

SECTION C: Tools

Footnotes

Some experts claim, If your home page does not load within 8 seconds, as much as a third of your site visitors will get frustrated and leave. I hope that these guidelines and examples would help to quickly understand and apply improvements to your web development.

Resources and further readings:

History

Lasted Updated: Monday, May 26, 2008.

You must Sign In to use this message board.
 
 
Per page   
 FirstPrevNext
GeneralExcellent Pin
Aarti Srivastava
1:53 5 Feb '09  
Generalo.k. Pin
ykorotia
9:16 28 Nov '08  
General[Message Removed] Pin
Katekortez
10:29 25 Oct '08  
GeneralCool Pin
ChristiaanS
8:33 22 Aug '08  
GeneralExcellent Article! Meaningful, Clear and Useful Pin
Member 992848
5:26 17 Aug '08  
QuestionI can publish? Pin
Weder Lima
3:42 30 Jun '08  
AnswerRe: I can publish? Pin
Assad Baig
4:10 30 Jun '08  
Generalvisit funscrape.com Pin
arbaz
0:28 20 Jun '08  
GeneralWell done Pin
Member 3958291
0:10 15 Jun '08  
GeneralGood Basic Info Pin
Member 4484520
4:32 7 Jun '08  
AnswerRe: Good Basic Info Pin
Assad Baig
14:52 7 Jun '08  
GeneralGreat article Pin
Ralph Willgoss
4:21 5 Jun '08  
Generali'd like to say great, but... Pin
Terrential
11:10 3 Jun '08  
GeneralEXCELLENT..good advice for the less experienced..like me..BUT I'm using IIS 5.0 Pin
bgriffin_tpa
10:44 3 Jun '08  
GeneralGREAT Pin
Islam ElDemery
1:24 3 Jun '08  
GeneralVery nice Pin
nmk_poy
19:05 2 Jun '08  
GeneralVery nice Pin
xxx786
17:46 2 Jun '08  
GeneralThe KING! Pin
admirm
10:56 2 Jun '08  
GeneralExcellent article! Pin
azamsharp
13:53 31 May '08  
GeneralVoting Pin
Kamarey
21:46 28 May '08  
GeneralGreat Post! I would just like to add... Pin
CCMint
17:39 28 May '08  
GeneralFantastic Pin
JimBob SquarePants
16:04 28 May '08  
GeneralAlot of useful information! Pin
DudeWhatsTheAPI
10:18 28 May '08  
GeneralVery nice! Pin
msmits
3:56 28 May '08  
GeneralWell Done - Keep it up Pin
Farhan Ijaz Chauhan
4:56 27 May '08  


Last Updated 26 May 2008 | Advertise | Privacy | Terms of Use | Copyright © CodeProject, 1999-2009