setTimeout( function() { var slides = JSON.parse( canvasContainer.getAttribute( 'data-slides' ) ); for( let i = 0; i < slides.length; i++ ) { img = new Image(); img.src = slides[i].src; } }, 1000 );