Quantcast
Viewing all articles
Browse latest Browse all 8068

ListView performance slow.. Even laggy.. (iOS) Why?

Hi, I've rewritten all of my feeds in my app to listview items. One thing I just noticed is when I create a "listviewitem" that has alot of views, it runs really slow the first time I scroll it through. To make it faster, I've removed a bunch of auto-heights (height: Ti.UI.SIZE). Visually, the feed looks like the Facebook-app feed.

So my problem, when I scroll through the feed it really lags. Odd in my point of view, since the listview performance has been awesome until now. But even more odd is when I reach the bottom of the page, and scroll back to top. No lag. After I've scrolled through the feed, everything is really smooth.

It's like the items hasnt rendered until it has been "scrolled over" or something.. I dont know.

(Developing in Ti 3.2.3, for iOS)

Anyone who might know what to do?

(Since the code-highlighter here are broken for me, here's one template of my items:

http://pastebin.com/JvWHFkKK

All suggestions appreciated. Im kind of stuck here, cant launch when the feed is slow like this..

I have tried to remove all things and so on, but the only reason I found that it lags is the "Big" image provided (bindId: 'image') and the (bindId: 'avatar'). But even if I remove them and let everything else be in place, it's some lag..

Please help :)


Viewing all articles
Browse latest Browse all 8068

Trending Articles