JSFiddle - React, Tailwind, and code Playground
HTML
<img class="preload" src="http://playground.btolab.com/sandbox/qa/stackexchange/stackoverflow/12861343/clock1.gif" />
<img class="preload" src="http://playground.btolab.com/sandbox/qa/stackexchange/stackoverflow/12861343/clock2.gif" />
<img class="preload" src="http://playground.btolab.com/sandbox/qa/stackexchange/stackoverflow/12861343/clock3.gif" />
CSS
.preload { visibility: hidden; }
img { width: 200px; }
JavaScript
$(window).load(function() {
$('.preload').attr('src', function(i,a){
$(this).attr('src','')
.removeClass('preload')
.attr('src',a);
});
});