# Prototype.js Ajax is slow

**URL:** <https://www.ruby-forum.com/t/prototype-js-ajax-is-slow/146828>\
**Category:** Rails\
**Created:** [August 26, 2008, 12:13am UTC](https://www.ruby-forum.com/t/prototype-js-ajax-is-slow/146828 "2008-08-26T00:13:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![veganopolis](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/ecae2f/32.png) [@veganopolis](https://www.ruby-forum.com/u/veganopolis)\
**Post date:** [August 26, 2008, 12:13am UTC](https://www.ruby-forum.com/t/prototype-js-ajax-is-slow/146828/1 "2008-08-26T00:13:41Z")

</div>

So I was doing some experimenting with prototype and ajax and discovered  
something interesting. When I use the first ajax call the response from  
the server take 53ms. When I use the second on using the prototype  
functions the request from the server is over 200ms. My question is  
why, and can it be fixed?

Call server-side function

Update element

Thanks

Sam Murk

---

<div class="post-metadata">

**Author:** ![veganopolis](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/ecae2f/32.png) [@veganopolis](https://www.ruby-forum.com/u/veganopolis)\
**Post date:** [August 26, 2008, 12:37am UTC](https://www.ruby-forum.com/t/prototype-js-ajax-is-slow/146828/2 "2008-08-26T00:37:46Z")

</div>

On 25 Aug 2008, at 23:13, Sam Murk wrote:

> So I was doing some experimenting with prototype and ajax and  
> discovered  
> something interesting. When I use the first ajax call the response  
> from  
> the server take 53ms. When I use the second on using the prototype  
> functions the request from the server is over 200ms. My question is  
> why, and can it be fixed?

You might find that the guys on the prototype-scriptaculous list are  
more clued up on this.

Fred
