Created
December 4, 2013 17:21
-
-
Save ErDmKo/7791657 to your computer and use it in GitHub Desktop.
Image loader even caller
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var onLoader = function onloader(call, selector) | |
{ | |
var loaderTimer = setInterval(function() | |
{ | |
if ( | |
!$(selector).filter(function() | |
{ | |
return !this.complete | |
}).length | |
) | |
{ | |
clearInterval(loaderTimer); | |
call(); | |
} | |
}, 100); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment