img.onerror = function()

in toolkit/jb/shared.js [125:136]


        img.onerror = function() {
            imagesErrors[imgSpec.id] = true;
            //console.log('image at ' + imgSpec.path + ' failed to load');
            readyImgCount++;
            //console.log('images ready:', readyImgCount + '/' + imagesToLoad.length);
            showLoaderAt(readyImgCount / imagesToLoad.length, 'Loading Images');
            if (readyImgCount == imagesToLoad.length) {
                if (onComplete) onComplete();
                hideLoader();
                //console.log('finished loading images');
            }
        };