Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use asyncStorage (indexedDB wrapper) instead of localStorage #21

Closed
willyaranda opened this issue May 14, 2013 · 2 comments
Closed

Use asyncStorage (indexedDB wrapper) instead of localStorage #21

willyaranda opened this issue May 14, 2013 · 2 comments

Comments

@willyaranda
Copy link
Contributor

localStorage is syncronous, so it blocks UI. You should use asyncStorage[1], which is a localStorage-like wrapper for indexedDB (so it's asynchronous).

[1] https://github.com/mozilla-b2g/gaia/blob/master/shared/js/async_storage.js

@aesedepece
Copy link
Member

Shut up and take my money!!!
That would avoid the little UI freeze when entering a chat with lots of messages inside. It will be implemented ASAP :)

@ghost ghost assigned aesedepece May 14, 2013
@aesedepece
Copy link
Member

Fixed by commits 6f82fe3 and a9c97b5

In addition if it detects that there is data from a previous version of LOQUI, it imports the data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants