webimageloader icon indicating copy to clipboard operation
webimageloader copied to clipboard

Pause async loader on scroll

Open bhaskarmurthy opened this issue 12 years ago • 2 comments

Is there any way to pause the async tasks? Reason I ask, is to pause the background threads while scrolling as there's too much work being done as the images scroll by for a listview with large number of images.

So, on scroll, I would pause the work and on scroll stop, I would resume the work.

Thanks, Bhaskar

bhaskarmurthy avatar Dec 13 '12 17:12 bhaskarmurthy

Currently no, however I think this is a good thing to add and should be fairly simple (basically just pause the threads). I'll think about the implementation and probably get it done during the holidays. Thanks!

lexs avatar Dec 21 '12 13:12 lexs

I've started working on this on a separate branch. It works nicely but I'm planning on adding preloading before I release it.

Branch is here: https://github.com/lexs/webimageloader/tree/list-optimizations

lexs avatar Jan 08 '13 21:01 lexs