Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delay the loading of the placeholder image until after load #701

Merged
merged 4 commits into from
Jun 12, 2014
Merged

Delay the loading of the placeholder image until after load #701

merged 4 commits into from
Jun 12, 2014

Conversation

billburgess
Copy link
Contributor

There are some categories that build upon this that have activity spinners or other loading images that are separate from the placeholder image. I overloaded the -setImageWithURL method to provide a delayPlaceholder flag that will load the placeholder image only after the image fails to load. This allows the activity spinner or loading image to show rather than the placeholder image.

@rs
Copy link
Member

rs commented Apr 28, 2014

Why don't you use the options parameter to pass this option?

@billburgess
Copy link
Contributor Author

I didn't want to interfere with the existing setup. But that would be a better option. Is this something you'd prefer to see and would consider merging?

@rs
Copy link
Member

rs commented Apr 28, 2014

Definitely

@bpoplauschi
Copy link
Member

@rs I think this pull request was updated according to your feedback. Could you please take a look and merge if you agree? It looks good to me

@bpoplauschi bpoplauschi added this to the 3.7.0 milestone Jun 12, 2014
rs pushed a commit that referenced this pull request Jun 12, 2014
Delay the loading of the placeholder image until after load
@rs rs merged commit f5bd783 into SDWebImage:master Jun 12, 2014
@bpoplauschi
Copy link
Member

Thanks

@billburgess billburgess deleted the delayplaceholder branch June 17, 2014 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants