Hi all!
While waiting for virtual lists and caching, I’ve a problem with a quite short list.
My list is of about 70 items (much less than the 2000 items always cited), markup is this one:
<ul class="list">
<li class="item item-button-right"
ng-repeat="item in items"
on-finish-render="repeatFinish()"
ng-click="open(item.Name,$event)>
<button class="button button-icon button-large">
<i class="icon ion-android-star"
ng-click="favorite(item.Name,$event)></i>
</button>
{{item.Name}}
</li>
</ul>
(ps: on-finish-render directive is used to measure render time http://stackoverflow.com/a/15209318)
With 70 items (that are objects with only the Name property for now), this take about 1 second to render. It is too much, especially when switching between tabs.
If I remove both ng-click, it take half the time to render, about 520ms. Better, but not yet excellent. And I need both of them.
How can I improve this?
My device is Samsung Galaxy S2.