[jQuery] Re: jQuery lagging

2009-07-31 Thread Leonardo K
Try to use the stop function before the animation start http://docs.jquery.com/Effects/stop On Thu, Jul 30, 2009 at 18:37, Perrin4869 juliangrinb...@gmail.com wrote: I guess I'll make it much easier if I strip all the surrounding stuff in the webpage, and use the uncompressed version of

[jQuery] Re: jQuery lagging

2009-07-31 Thread Perrin4869
I do use it, in fact, the line that triggers the animation is: this.currentImage.stop().fadeTo(300, 0, createObjectCallback(this, this.FadeInGalleryImageFaded)); On Jul 31, 3:16 pm, Leonardo K leo...@gmail.com wrote: Try to use the stop function before the animation start

[jQuery] Re: jQuery lagging

2009-07-31 Thread Perrin4869
OK, I added a call to stop before the call to fadeIn, and it seemed to do the trick. What's bothering me though, is that when the event that calls fadeIn is called, there is not supposed to be any animation to stop. So the question is, why does it need to be stopped? And should I make it a habit

[jQuery] Re: jQuery lagging

2009-07-31 Thread Leonardo K
I recommend you to use stop when you are doing animation on hover event. Because you will never know how many times users will hover the element. On Fri, Jul 31, 2009 at 14:42, Perrin4869 juliangrinb...@gmail.com wrote: OK, I added a call to stop before the call to fadeIn, and it seemed to do

[jQuery] Re: jQuery lagging

2009-07-30 Thread Perrin4869
I guess I'll make it much easier if I strip all the surrounding stuff in the webpage, and use the uncompressed version of jQuery. Here's the updated demo, which still has the problem: http://79.182.22.144:1118/fadein_gallery.html On Jul 30, 6:59 pm, Perrin4869 juliangrinb...@gmail.com wrote: