Ignore 1x1 images in hiddenImages rule
This commit is contained in:
@@ -52,6 +52,8 @@ exports.module = function(phantomas) {
|
||||
|
||||
if (src === '' || src.indexOf('data:image') === 0) continue;
|
||||
|
||||
if (images[i].width === 1 && images[i].height === 1) continue;
|
||||
|
||||
if (!lazyLoadableImages[src]) {
|
||||
path = phantomas.getDOMPath(images[i]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user