desandro/imagesloaded — Issue #13: More granular handling of error and success callbacks
Author: desandro
Created: 2012-01-10 12:50:18+00:00
State: open

After merging #11, `imagesLoaded` will trigger even if there are broken image paths. I see this as a bug, since the "images" have not all loaded, they are broken.

Per @Darsain's [research](https://github.com/desandro/imagesloaded/pull/11#issuecomment-2878674), figuring out if images are loaded or broken seems a bit convoluted. Perhaps `fileSize = -1` together with an error event might prove to be worthwhile.

It could be beneficial to adopt [jQuery Deferred Object](http://api.jquery.com/category/deferred-object/) methods `.done(), .fail(), .always()`, so that users have better control of how to handle loaded or broken images.