resolve the delay with ajax request

Dear experts,

I wish to know if there is away to reduce the delay with ajax request?

here is the scenario:

I have ajax request coded in javascript/jquery which links to a php web page. Php web page will simply show the result in a table format within a designated <div>

Everytime when I load up the page it will send the ajax request that's asking the php page for the result and place the result in to the <div>. Sometimes the result within the <div> will not show up immediately maybe like after few seconds, the result will show.

Is there a way for me to reduce the delay time?  Thanks
Kinderly WadeprogrammerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dave BaldwinFixer of ProblemsCommented:
Probably not.  It should be the same delay you would see if you loaded the data directly.  If you have a lot of javascript on the page, that might slow it down some.  Other than that, it's the combination of database access time and network traffic, just like any other page.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Kinderly WadeprogrammerAuthor Commented:
Hi Dave,

is there a way for me to check the access time or able to find out the cause with any monitoring system? Will the firebug able to find it?
0
Dave BaldwinFixer of ProblemsCommented:
On a page that uses AJAX, I can see the file access in the Net tab in Firebug.  You need to know the name of the PHP file because that's what it's listed under.  I would expect to see the time vary with each page request.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
AJAX

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.