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

Always shows Placeholder image first #599

Closed
K232 opened this issue Jan 5, 2014 · 2 comments
Closed

Always shows Placeholder image first #599

K232 opened this issue Jan 5, 2014 · 2 comments
Milestone

Comments

@K232
Copy link

K232 commented Jan 5, 2014

Hi all,
I have a problem with the PlaceHolder Image: I use the code exactly as shown in the readme here, so both imageurl and PlaceHolder Imagefilename are supplied. On first run my app of course shows the PlaceHolder and it's replaced after download, that's fine.
But also on the second, third etc. run the placeholder image is displayed first. Only for maybe 0,1 - 0,2 seconds, but long enough so that the user notifies it and also the replacement. I'm sure the images are already cached because the display of the placeholder is much shorter than on the initial run but nevertheless the placeholder is displayed first :-( is it possible to show the placeholder only if the image is not yet cached? It seems to be same request like in #541
Thanks!

@limboy
Copy link

limboy commented Jan 7, 2014

may be after u scroll for a duration, images memory is recycled by system, so the next time you scroll to the imageView it has to read from disk, it may cost some time, like you see.

if u don't put a placeholder then the 0.1-0.2 seconds just become blank, you sure this is what you want?

or you can use SDWebImageManager to deal with yourself, combine with prepareForReuse

@croigsalvador
Copy link

When I don't put an image in the placeholder, the others images already loaded appears instead a blank image. So, it is weird.. any idea? How do you solve this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants