Web Browser Storage
Local Storage
Limited in terms of storage capacity and its ability to store only string-based data.
Well-suited for storing smaller amounts of data that need to be shared among different tabs or windows of the same website or application.
Commonly used in token storage, user preferences storage
IndexDB
More suitable for storing larger amounts of structured data and offers a more advanced data model with features like indexes and asynchronous operations.
It provides a robust solution for managing and querying large datasets, making it a good choice for applications that require complex data storage and retrieval.
Commonly used in offline task feature, shopping cart, etc
The storage operation is async in javascript which will not block the DOM manipulation
Last updated
Was this helpful?