I have a simple galery slider image. When the first image is visible the left arrow is hidden and when the last image is visible the right arrow is hidden.
To hide and show the arrows I used the hide and show methods. But other methods can work too, like: fadeIn() / fade Out and css(‘visibility’,’hidden’) / css(‘visibility’,’visible’)
I was wondering which is the most optmizad method. The fastest one
Thanks all
From http://api.jquery.com/hide/ .hide() when not using animation.
fadeIn() and fadeOut() use animation and will be slower and require more processing (just like hide() with a time set against it. )