Naitik Mistry
Naitik Mistry

Reputation: 309

Waiting time for an ajax HTTP request

I am currently working on script that use ajax http request to pass the data and get response in second page.when i call the ajax function i will get response slow in total time 22.79s in which waiting time is 21.47 and receiving time is 1.32s.

Does anybody know how could i reduce the waiting time ?

Upvotes: 3

Views: 1392

Answers (1)

Viktor S.
Viktor S.

Reputation: 12815

Waiting time is a time of your server side script execution. You should improve your PHP script to make it work faster.

Take a look at https://codereview.stackexchange.com/ - there you can post you code for peer review and ask people help you to improve its performance.

Also, you can take some PHP profiler and see what piece of code is slow by yourself. I were using XDebug for that: http://xdebug.org/docs/profiler. Very helpful tool.

Upvotes: 5

Related Questions