Skip to content

Commit

Permalink
added override blur-up classes
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleksandr Kharchenko committed Jul 14, 2020
1 parent a2f37ec commit 5b2f66a
Show file tree
Hide file tree
Showing 8 changed files with 60 additions and 17 deletions.
3 changes: 2 additions & 1 deletion lazysizes-umd.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
errorClass: 'lazyerror',
//strictClass: 'lazystrict',
autosizesClass: 'lazyautosizes',
fastLoadedClass: 'ls-is-cached',
srcAttr: 'data-src',
srcsetAttr: 'data-srcset',
sizesAttr: 'data-sizes',
Expand Down Expand Up @@ -527,7 +528,7 @@

if( !firesLoad || isLoaded){
if (isLoaded) {
addClass(elem, 'ls-is-cached');
addClass(elem, lazySizesCfg.fastLoadedClass);
}
switchLoadingClass(event);
elem._lazyCache = true;
Expand Down
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.

3 changes: 2 additions & 1 deletion lazysizes.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
errorClass: 'lazyerror',
//strictClass: 'lazystrict',
autosizesClass: 'lazyautosizes',
fastLoadedClass: 'ls-is-cached',
srcAttr: 'data-src',
srcsetAttr: 'data-srcset',
sizesAttr: 'data-sizes',
Expand Down Expand Up @@ -525,7 +526,7 @@

if( !firesLoad || isLoaded){
if (isLoaded) {
addClass(elem, 'ls-is-cached');
addClass(elem, lazySizesCfg.fastLoadedClass);
}
switchLoadingClass(event);
elem._lazyCache = true;
Expand Down
Loading

0 comments on commit 5b2f66a

Please sign in to comment.