We have several places in the app where we need to trigger image preloading. We can't do it all at one time, as we load resources along the way.
The issue here is that SDWebImage has a nasty side-effect built into it, it cancels any ongoing prefetch jobs when you call prefetchURLs. There's another variant of the method that has a completion block that returns the progress of the prefetch jobs. Would it be in any way possible to add support for a callback so that we could at least queue the preload calls in our end?
Haven't checked Glide if it supports similar behavior.
+1
Yeah this behavior is not ideal. A callback would be nice too. I'm considering trying out some other native library if there's one offering similar performance with a better API. See: https://github.com/DylanVann/react-native-fast-image/issues/13
SDWebImage handles its core functionality really well though.
I'll add a note in the docs for now, and a link to that issue.
Any update on this? Could def use it in my app... Everything else is working great. Thanks for this awesome component
Most helpful comment
Yeah this behavior is not ideal. A callback would be nice too. I'm considering trying out some other native library if there's one offering similar performance with a better API. See: https://github.com/DylanVann/react-native-fast-image/issues/13
SDWebImagehandles its core functionality really well though.I'll add a note in the docs for now, and a link to that issue.