ionic-framework icon indicating copy to clipboard operation
ionic-framework copied to clipboard

Extremely Slow Transitions To and From a Page With 100+ ng-repeat Items

Open allenakinkunle opened this issue 12 years ago • 9 comments

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.

allenakinkunle avatar Aug 02 '14 03:08 allenakinkunle

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.

andrewmcgivery avatar Aug 03 '14 15:08 andrewmcgivery

Collection repeat would help with this

http://ionicframework.com/docs/api/directive/collectionRepeat/

mhartington avatar Aug 05 '14 20:08 mhartington

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?

asterism612 avatar Aug 06 '14 02:08 asterism612

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.

toby-m avatar Aug 06 '14 02:08 toby-m

thanks toby-m

i'll try it.

asterism612 avatar Aug 06 '14 02:08 asterism612

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.

toby-m avatar Aug 06 '14 02:08 toby-m

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.

allenakinkunle avatar Aug 06 '14 10:08 allenakinkunle

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

mhartington avatar Aug 06 '14 14:08 mhartington

I observed that collection repeat do not work when using native scrolling. it mean that i can't disable javascrip scrollin in collection repeat.

onigetoc avatar Aug 31 '15 19:08 onigetoc