Skip to content

Instantly share code, notes, and snippets.

@codeincontext
Created September 10, 2012 23:59
Show Gist options
  • Select an option

  • Save codeincontext/3694924 to your computer and use it in GitHub Desktop.

Select an option

Save codeincontext/3694924 to your computer and use it in GitHub Desktop.
because meh. Let's not block the ui for too long in one go
var i = 0;
var addPhotoInterval = setInterval(function() {
instawall.renderImage(data.data[i++]);
if (i == data.data.length) clearInterval(addPhotoInterval);
}, 10);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment