Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions dist/jquery.bxslider.js
Original file line number Diff line number Diff line change
Expand Up @@ -285,13 +285,13 @@
};

var loadElements = function(selector, callback) {
var total = selector.find('img:not([src=""]), iframe').length,
var total = selector.find('img').filter(function(){return this.complete === true;}).length,
count = 0;
if (total === 0) {
callback();
return;
}
selector.find('img:not([src=""]), iframe').each(function() {
selector.find('img').filter(function(){return this.complete === true;}).each(function() {
$(this).one('load error', function() {
if (++count === total) { callback(); }
}).each(function() {
Expand Down
Loading