I am loading a gif when the user hover over a certain <div>
. I do this using jQuerry with the following code:
$('#vidthumb_' + idDoDiv).attr('src', caminhoParaOGif);
The problem is that the gif takes about 1 second to load, and I wanted to show something (loading image or text) until the gif is loaded and ready to play, how should I change my code? / p>