var dripload = { // once started, this will start populating the gallery one image at a time. left: true, // this will load one image at a time, generateImage: function() { article = $('.gallery article')[0] data = article.dataset; image = new Image(); image.onload = function(a) { if(this.left) { append = $('#col-a') this.left = false; } else { append = $('#col-b') this.left = true; } pricecallout = ''+data.title+''; if(data.price) { pricecallout += '     Trina sells these directly!    Buy now for $'+data.price+''; } $(image).appendTo( $('') ).closest('a').appendTo(append); this.generateImage(); }.bind(this); image.src = data.thumbnail; article.remove(); } }