Completely disregarded the complete
feature in Image objects. This appears to work although it's a bit buggy in Opera and Safari, hence the reason for all the "hiding" code going on in the conditional block at the bottom.
$('#' + tabName).jflickrfeed({
limit: 10,
qstrings: {
set: photoSet,
nsid: '118934683@N02'
},
useTemplate: false,
itemCallback: function(item) {
// Where all the action is...
//
$(this).append("<a class=\"fancybox\" href='" + item.image_b + "' title='(ID# " + item.title + ")'>" + "<img src='" + item.image_n + "' alt='image'/></a>");
// Store the source of the image and convert it
// to a string. Keep track of the count too
//
var img = new Image();
img.src = item.image_n.toString();
photoCount++;
// Hide loader gif
//
if (photoCount == 10 && img.complete === true) {
$('#loader').css('visibility', 'invisible');
$('#loader').css('top', 10000).css('left', 10000);
$('#loader').hide();
}
}
});