Ignore 1x1 images in hiddenImages rule

This commit is contained in:
Gaël Métais
2016-03-27 17:18:28 +03:00
parent ada82fa7e1
commit 3ff23e1c47
@@ -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]);