JSFiddle - React, Tailwind, and code Playground
by renevilla23
JavaScript
function preloader()
{
// counter
var i = 0;
// create object
imageObj = new Image();
// set image list
images = new Array();
images[0]="http://reneinla.com/tasha-goldthwait/style/images/gifs/giphy.gif"
images[1]="http://reneinla.com/tasha-goldthwait/style/images/gifs/LEAGUE-OF-LEGENDS.gif"
images[2]="http://reneinla.com/tasha-goldthwait/style/images/gifs/OPERATOR.gif"
// start preloading
for(i=0; i<=2; i++)
{
imageObj.src=images[i];
console.log(images[i]);
}
}
jQuery(document).ready(function () {
preloader();
});