Jump to content


Photo

ajax is slow


  • Please log in to reply
14 replies to this topic

#1 isaac_cm

isaac_cm
  • Members
  • PipPipPip
  • Advanced Member
  • 319 posts

Posted 22 June 2006 - 11:23 PM

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

#2 deejay1111

deejay1111
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 06 July 2006 - 09:47 AM

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
get help at www.ajaxtalk.com

#3 isaac_cm

isaac_cm
  • Members
  • PipPipPip
  • Advanced Member
  • 319 posts

Posted 18 October 2006 - 11:51 PM

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

#4 tomfmason

tomfmason
  • Staff Alumni
  • Advanced Member
  • 1,696 posts
  • Locationstealing your wifi

Posted 19 October 2006 - 02:16 AM

I have never had an issue with that before. Please post an example of your code.

Tom

Traveling East in search of instruction, and West to propagate the knowledge I have had gained.

current projects: pokersource

My Blog | My Pastebin | PHP Validation class | Backtrack linux


#5 isaac_cm

isaac_cm
  • Members
  • PipPipPip
  • Advanced Member
  • 319 posts

Posted 19 October 2006 - 01:19 PM

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 !!!

#6 fenway

fenway
  • Staff Alumni
  • MySQL Si-Fu / PHP Resident Alien
  • 16,199 posts
  • LocationToronto, ON

Posted 19 October 2006 - 04:52 PM

What makes you think it's AJAX and not the connection itself?
Seriously... if people don't start reading this before posting, I'm going to consider not answering at all.

#7 isaac_cm

isaac_cm
  • Members
  • PipPipPip
  • Advanced Member
  • 319 posts

Posted 21 October 2006 - 11:56 AM

I think it is the host not ajax , am I right ?
if so please advice

#8 fenway

fenway
  • Staff Alumni
  • MySQL Si-Fu / PHP Resident Alien
  • 16,199 posts
  • LocationToronto, ON

Posted 22 October 2006 - 09:16 PM

Test it on another host, or run something equivalent that you know runs at a given speed.  Otherwise, I have no advice.
Seriously... if people don't start reading this before posting, I'm going to consider not answering at all.

#9 isaac_cm

isaac_cm
  • Members
  • PipPipPip
  • Advanced Member
  • 319 posts

Posted 22 October 2006 - 11:35 PM

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

#10 GingerRobot

GingerRobot
  • Staff Alumni
  • Advanced Member
  • 4,086 posts
  • LocationUK

Posted 24 October 2006 - 12:37 PM

Well it would seem that it is your host then. Perhaps you could contact them?

#11 isaac_cm

isaac_cm
  • Members
  • PipPipPip
  • Advanced Member
  • 319 posts

Posted 25 October 2006 - 11:37 PM

the crazy thing they claim nothing is wrong

#12 Ninjakreborn

Ninjakreborn
  • Members
  • PipPipPip
  • Information Technology Specialist
  • 3,922 posts
  • Age:33

Posted 26 October 2006 - 01:20 PM

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.

------

Business Website: http://www.infotechnologist.biz

Personal Website: http://www.joyelpuryear.com

Blog Site: http://www.realmofwriting.com
Services: Web development, application development, mobile development, and custom development. All services listed on my website.


#13 fenway

fenway
  • Staff Alumni
  • MySQL Si-Fu / PHP Resident Alien
  • 16,199 posts
  • LocationToronto, ON

Posted 26 October 2006 - 05:16 PM

With a shared host, there's not much you can do.
Seriously... if people don't start reading this before posting, I'm going to consider not answering at all.

#14 isaac_cm

isaac_cm
  • Members
  • PipPipPip
  • Advanced Member
  • 319 posts

Posted 27 October 2006 - 12:13 PM

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

#15 fenway

fenway
  • Staff Alumni
  • MySQL Si-Fu / PHP Resident Alien
  • 16,199 posts
  • LocationToronto, ON

Posted 28 October 2006 - 04:23 PM

You can't... and it's not just ajax, it's everything running on that box.
Seriously... if people don't start reading this before posting, I'm going to consider not answering at all.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users