I'm having an issue with slow AJAX calls. This is a common question, but I've done everything suggested in all the research I can find. I'm hoping to get a consensus form people who read this.
Basically, I make an ajax request to a php page, which gets info from a database.
here is the page: http://bit.ly/bQDyjj
I've timed all of my javascript, mySQL, and php scripts, requests, and pages. (If you run firebug you can see my time markers in the console, as well as in the xml)
As an example -
The mysql request takes 20ms The PHP page takes 50ms The ajax success script, which processes the small amount of xml (less than 1k) and generates the markers, takes 8ms to run.
Yet, loading the page takes nearly 4 seconds.
So, assuming none of my scripts are lagging, this has to be a problem with the response time from the server, or my own internet connection, right?
I'd appreciate any theories or thoughts.
Thank you