Mouseover Speed Issues

I’m having severe speed issues on our server (localhost is lightening
fast!).

Here’s the call:
<img src= <%= @pics[col].img_url %> height=80 width=60 onMouseover="<%=
remote_function(:update => “diag_box”, :url => { :action => :preview,
:tit => @pics[col].mname, :desc => @pics[col].description })%>;">

It’s an image, that when moused-over, it calls the function :preview,
and passes :tit and :desc. The results of :preview will get rendered in
the div :update.

The preview function just does
render_text “” + params[:tit] + “
” + params[:desc]

Is there a better way to do this?
Why does it load so slowwwwwww on our server but not in localhost?

-Ben

Make sure your link_to_remote is not triggered multiple times for the
same
image.
Also you should check the logs on your server and see how quickly is
your
request processed.

Ben L. wrote:

…height=80 width=60…

Is there a better way to do this?
Why does it load so slowwwwwww on our server but not in localhost?

Is that the actual size of the image on the server? If so, the image
should only be 2K or so, and it should look adequately fast. But if
you’re shoveling 20 or 30K over the net and using this specification to
resize a larger image, it will look slow.

In this case, the thing to do would be to make your thumbnails on the
server end.

–Al Evans