when my ionic app starts for the first time it will connect to a web service to download a json data (1800 json object) and store it on the localstorage.
getting the data is fast enough but when storing it using localforage the App freeze for few seconds which is not a good user experience at all. any thoughts how I can solve this?
$http.post('serviceURL')
.success(function (data) {
$localForage.setItem(CACHE_KEY, data);
deferred.resolve(data);
})
.error(function (err) {
deferred.reject(err);
});