Local Storage
Local Storage is a browser API that lets web applications store key-value string data on the user's device, persisting across page reloads and browser restarts until explicitly cleared.
9 resources across 3 libraries
Glossary Terms(4)
Cookie
A cookie is a small piece of data that a website stores in a user's browser, sent back to the server with every subsequent request to that site, commonly used…
Local Storage
Local Storage is a browser API that lets web applications store key-value string data on the user's device, persisting across page reloads and browser restarts…
IndexedDB
IndexedDB is a low-level, asynchronous browser API for storing significant amounts of structured data — including files and blobs — on the client, with support…
Web Worker
A Web Worker is a browser API that runs JavaScript code on a background thread, separate from the main UI thread, so CPU-intensive tasks don't block page rende…
Study Notes(1)
Interview Questions(4)
IndexedDB vs localStorage vs Cookies: When Do You Use Each?
Cookies are small, automatically sent-with-every-HTTP-request key-value pairs meant for server-visible state like session identifiers, localStorage is a synchr…
What Are the Size Limits of Web Storage Mechanisms?
Cookies are limited to roughly 4KB per cookie (and a per-domain count cap around 50-180 depending on the browser), localStorage and sessionStorage typically ca…
How Do You Implement Dark Mode in a Web App?
Dark mode is implemented by defining theme values as CSS custom properties, switching between a light and dark set of those values based on either the user’s O…
How Does Browser Storage Quota Management Work?
Browsers grant each origin a share of disk space for localStorage, IndexedDB, and Cache Storage that is bounded by a quota the browser computes from total free…