How to Reduce 'Waiting Time' and 'Receiving Time' on Page Load

Satya Prakash picture Satya Prakash · Oct 5, 2013 · Viewed 20.2k times · Source

I am using CloudFront and many time I see Wait Time and Receiving Time is too high.

According to Firebug document, Waiting time and Receiving time means:

Waiting - Waiting for a response from the server

Receiving - / (from cache) Time required to read the entire response from the server (and/or time required to read from cache)

I do not understand why it takes so much time and what I can do to reduce the time?

enter image description here

Answer

Litmus picture Litmus · Oct 11, 2013

There are multiple things you can do.

  1. Set appropriate headers Expires, Cache-control, ETag etc.
  2. Use gzipped versions of the assets
  3. User Sprites where possible. Merge your CSS files into one, merge your JS files into one

Run your site through WebpageTest.org and go through all the recommendations.

Run your site through YSlow and go through all the recommendations