Skip to content

Commit

Permalink
4.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander.farkas committed Aug 23, 2018
1 parent c38044d commit 3ace9f3
Show file tree
Hide file tree
Showing 25 changed files with 31 additions and 25 deletions.
2 changes: 1 addition & 1 deletion lazysizes-umd.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lazysizes.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lazysizes",
"version": "4.1.0",
"version": "4.1.1",
"filename": "lazysizes.min.js",
"license": "MIT",
"author": "Alexander Farkas <[email protected]>",
Expand Down
2 changes: 1 addition & 1 deletion plugins/artdirect/ls.artdirect.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion plugins/aspectratio/ls.aspectratio.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions plugins/attrchange/ls.attrchange.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@
lazySizes.rC(target, lsCfg.unloadedClass);
}
lazySizes.aC(target, lsCfg.lazyClass);

if(target.style.display == 'none' || (target.parentNode && target.parentNode.style.display == 'none')){
setTimeout(function () {
lazySizes.loader.unveil(target);
}, 0);
}
});
};

Expand Down
Loading

0 comments on commit 3ace9f3

Please sign in to comment.