Skip to content

Commit

Permalink
remove loading classes
Browse files Browse the repository at this point in the history
  • Loading branch information
aFarkas committed Dec 17, 2014
1 parent 1dd53cc commit a028ac1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion lazysizes.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,14 +178,15 @@
var switchLoadingClass = function(e){
addClass(e.target, e.target.getAttribute('data-loadedclass') || lazySizesConfig.loadedClass);
removeClass(e.target, lazySizesConfig.loadingClass);
addRemoveImgEvents(e.target, switchLoadingClass);
};

function preload(elem){
isPreloading++;
elem = unveilLazy(elem);
addRemoveImgEvents(elem, resetPreloading, true);
clearTimeout(resetPreloadingTimer);
resetPreloadingTimer = setTimeout(resetPreloading, 5000);
resetPreloadingTimer = setTimeout(resetPreloading, 999);
}

function clearLazyTimer(){
Expand Down
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.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"srcset",
"respimg",
"respimage",
"picturefill"
"include",
"include"
]
}

0 comments on commit a028ac1

Please sign in to comment.