The Secret Life of JavaScript: IndexedDB
The Secret Life of JavaScript: IndexedDB How store gigabytes of data client-side with IndexedDB #JavaScript #IndexedDB #WebPerformance #Storage Margaret is a senior software engineer. Timothy is her junior colleague. They work in a grand Victorian library in London — the kind of place where code quality is the unspoken objective, and craftsmanship is the only thing that matters. Episode 38 Timothy watched the red error text bloom across his developer console: Uncaught DOMException: Failed to execute 'setItem' on 'Storage': Setting the value of 'username' exceeded the quota. "The infinite scroll and the streaming NDJSON engine are handling the data beautifully," Timothy told Margaret as she walked up, sliding a fresh mug of dark roast onto his desk. "But the moment a user reloads the application, we have to pull all 100,000 diagnostic records across the network all over again. I tried to cache the parsed log array inside localStorage so i...