5 ms·
Why not just save JSON in localStorage?
by EGreg 12y ago
Why not just save JSON in localStorage?
- fabrice_d 12y agoBecause: 1) localStorage is limited to 5-10MB depending on the user agent. You may need more! 2) localStorage only stores strings, and json stringification and parsing is way less efficient than just dealing with objects in indexedDB.
- mzarate06 12y agoPlus, local storage doesn't support async operations; it's synchronous only.