function pop(index,value) {
if (typeof thumbnail_list == 'undefined') {
thumbnail_list = {};
}
thumbnail_list[index] = value;
}
function render() {
$.each(thumbnail_list, function(i, v) {
$("#"+i).attr("src",v);
});
}
This is my code, what happens is a list of thumbnail paths (value) are fed into pop with the img id (index). There around 500 thumbnails fed. When render is executed, it adds the src to the img, showing the image. This is taking a while to populate. The thumbs are only 100 x 50px and 5kb. Is it just the shear volume, or is my code slowing things down?