Extremely Slow Transitions To and From a Page With 100+ ng-repeat Items
I am using the latest release of Ionic with the latest release of Cordova. My app has a view which is populated with 100+ items using ng-repeat. When a user taps on an item, the page slides to a details view for that item.
I am having serious issues with responsiveness on Android and iOS 4. There is a 2+ second delay to transition to the detail view and 3+ seconds back to the list view.
Have you considered using collection-repeat?
http://ionicframework.com/docs/api/directive/collectionRepeat/
Another option is to use an infinite scroller. It speeds up bind time between views pretty significantly in some cases.
Collection repeat would help with this
http://ionicframework.com/docs/api/directive/collectionRepeat/
I have 200 Image in CloudFront. per Image is 20kb. per Image size is 720*460
I listing use collection-repeat. when i scroll list cut off frequently
how to more smooth list?
Maybe look at how many digests are being performed when you transition? We had a similar issue (even using collectionRepeat) where we were sorting with a filter and page transitions (and modal popups) were firing up to 20 digests which each triggering list re-sorting. Moving the sorting out to the controller so it was only performed once solved the issue for us.
thanks toby-m
i'll try it.
Hi @asterism612 I meant that for @superallen. I haven't seen our list cut off, we were having page transition performance problems with long-ish lists. Might be similar though.
Thanks guys! I tried collection-repeat and it reduced rendering time considerably. I also looking at trying out Facebook's ReactJS library that really reduces rendering time.
ReactJS wouldn't really be necessary, since collection repeat would handling most of the cycling of data. Seeing that the initial issue has been resolved, I'm going to close this. If there is still an issue, feel free to reopen this
I observed that collection repeat do not work when using native scrolling. it mean that i can't disable javascrip scrollin in collection repeat.