Jump to content

Archived

This topic is now archived and is closed to further replies.

isaac_cm

ajax is slow

Recommended Posts

I try a small ajax code in my page it work fine local but when I upload it to server it take 20 sec to respond
any one why ajax could be slow that way

I use ajaxgold framework it is simple since I did need more

thanks

Share this post


Link to post
Share on other sites
try another framework,

sometimes the javascript includes are more than 200 kb with functions included you'll never use.

or just strip out some functions that you don't use.

regards, dj

Share this post


Link to post
Share on other sites
I tried many of ajax framework some of them only include 4 functions !! and the respond is still slow , do you think the host is responsible for that ?

thanks

Share this post


Link to post
Share on other sites
I have never had an issue with that before. Please post an example of your code.

Tom

Share this post


Link to post
Share on other sites
pick any frame work I tried all,

I have another site on different host one in UK and the other in US the US host is responding faster after 1~3 sec but the UK server is responding after 15 sec !!!

Share this post


Link to post
Share on other sites
What makes you think it's AJAX and not the connection itself?

Share this post


Link to post
Share on other sites
Test it on another host, or run something equivalent that you know runs at a given speed.  Otherwise, I have no advice.

Share this post


Link to post
Share on other sites
yes I tested in USA server and UK server the first response is after 1~2 sec but the second (UK) the response was 15~ sec, is it very strange because the host at UK is big compnay

Share this post


Link to post
Share on other sites
The same with my host.
www.bluehost.com
they did the same thing until I kept complaining, theya ren't going to likely admit there wrong's.
The probably have so many people on one box, or a server hog, so it's making it run slow.  Your only thing is to keep complaining to them or change hosts.
What company is it, if it's bluehost then I can already tell you why.

Share this post


Link to post
Share on other sites
With a shared host, there's not much you can do.

Share this post


Link to post
Share on other sites
finally I found someone have the same problem with me
my host is www.names.co.uk
and I have been complained several times I even put the same page on another USA server and show them the difference but they deny

although I did not purchased a shared host


now please tell me how I can be sure the host respond is fast with Ajax ?

thanks

Share this post


Link to post
Share on other sites
You can't... and it's not just ajax, it's everything running on that box.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.