My app is sometimes unresponsive on load - sometimes I can’t scroll or open the side-menu
. It seems like the UX is frozen until the background processing is complete.
I do the following on startup:
- ParseJS call to get albums,
- ParseJS calls to get albumPhotos
- filter photos in controller
- render an image gallery in view with the the
collection-repeat
directive - IMG.src =
FILE_URI
images stored in
cordova.file.applicationStorageDirectory
The backend calls using ParseJS calls all use promises and are wrapped inside a $timeout
.
Is there something else I can do to get back to the main javascript UI thread so that it will be more responsive?