Skip to content

Add callback for preload completion. #144

Open
@pehagg

Description

@pehagg

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureA new feature to add.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions