Take the 2-minute tour ×

I have this website which I designed , It takes a lot of time to load the Page. The Chrome Console shows its in Waiting state , What is that and how can I fix it ?

So much time to Load the page Picture Attached .

share|improve this question
Got a URL? Can't help much without one. Seeing the code would also be a big help. –  starbeamrainbowlabs Aug 26 '12 at 8:21
Thanks! Perhaps you should add that to your question. Now all we need is the php code. We can probably find the problem if you show us. –  starbeamrainbowlabs Aug 26 '12 at 8:31
use microtime(true) in between php code to debug which step is taking this long in the execution. –  Sreenath S Aug 26 '12 at 8:39
@starbeamrainbowlabs - Updated the Code , Please have a look –  Adi Mathur Aug 26 '12 at 8:42
ok now looking at it the jquery js files are taking the time. can you try loading those js files from some third party servers like googleapis –  Sreenath S Aug 26 '12 at 9:36
show 7 more comments

2 Answers

I think it might be the call to the facebook graph api which takes some time...

share|improve this answer
I suspect the same. I'm not even sure if he needs to check for the token on every page load. –  rlcabral Aug 26 '12 at 8:49
` if(!isset($_SESSION['access_token']))` You are talking about this line right ? I removed it , still not much progress @rlcabral & @rlcabral –  Adi Mathur Aug 26 '12 at 8:51
@rlcabral - Could it be because of Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/earnfame/public_html/view.php:2) in /home/earnfame/public_html/view.php on line 3 –  Adi Mathur Aug 26 '12 at 8:58
add comment

It seems that all that JavaScript is slowing down the page. Right now, after you have removed the token check, the HTML loads fine, but the page still loading for a long time until it finally gets all it needs to finish building the page.


  • #1 Move the JS to the bottom of the page.
  • #2 If you really need all those asynchronous content, try to load offline as much as you can. Cache it if you can.
share|improve this answer
@rlcabral- I moved the JS to the bottom , But still its taking the waiting time as 15 sec as showing the image above . :/ –  Adi Mathur Aug 26 '12 at 9:19
add comment

Your Answer


