Scrolling of columns lags on slow connections
Hi Developers,
First of all many thanks that you give this great App to the community!
I use the Touchpad very often on mobile connections. I see that
the scrolling hangs very often while the Avatars are loaded (after
refresh) So I had a look on the code and commented the loading of
avatars out in entry.js entryChanged. The lags are gone immeadately
- well, the avatars are not shown then ;-)
Is it possible to get the avatars within a service or use something
like a cache locally?
EDIT:
I have made a further test by loading a
/media/internal/downlods/test.png in setSource of avatar. So
everytime the same picture is loaded from local source. Also no
lagging in this case. So the critical point is setting the avatar
directly from web which hang on slow/ mobile connections. Because
it runs in UI Thread the UI have to wait. If it would be possible
to save the avatars together with the tweets in background into a
cache folder and load it from local then would the UI prevent from
lagging
Thanks for reading
Comments are currently closed for this discussion. You can start a new one.
Support Staff 2 Posted by Tibfib on 04 Sep, 2011 09:32 PM
Hi Tommy,
Caching images is something we are planning on, just haven't gotten to it yet.
Thanks!
3 Posted by tommy7119 on 04 Sep, 2011 09:58 PM
Hi Tibfib,
thanks for your reply. Sounds great that you plan to improve that. I'm a .NET programmer. In the "NET world" it's quite easy to move things in the background by using threads. For now I try to understand the Spaz code and the coding for enyo in main. As I already have understand is that in enyo services are used for asynchronous tasks. I don't know whether Spaz already works that way (download in background and refresh UI if download is ready) Also I don't understand in the moment why (it semms to me) the avatars are loaded while scrolling in. It seems that the Listitems are builded just in the moment it becomes visible. If this is the case it could be useful to hold the images in a list of objects.
However I furtherly try to work a bit on the code - just to get a bit expierience with enyo.
cringer closed this discussion on 07 Sep, 2011 11:48 PM.