10 Replies Latest reply on Mar 4, 2015 7:40 AM by Spout

    load multiple image dynamically

    Spout Level 1


      I am looking for a way to load image one after an other, to load my animation quickly and not waiting for all image to be loaded


      I use :

      sym.$('_01').css({'background-image': 'url("01.jpg")','background-repeat': 'no-repeat'});

      sym.$('_02').css({'background-image': 'url("02.jpg")','background-repeat': 'no-repeat'});



      I could use a setInterval but I want to be sur that my image is loaded before the next one...is there a way to do that ?