I'm working on a web application for searching, filtering, and exploring a fixed data set. The data set fits in about 10 MB of JSON. It will change a few times a year, and it can be updated incrementally.
I would like to store this data in the browser to avoid latency. This is a hard requirement -- the profound gain in responsiveness is the entire reason to create this application when many excellent alternatives exist. I accept that it won't work well for some users.
What is the best way to store this data persistently in the browser? I could pack it into localStorage, but I'd have to decompress and JSON.parse
it on every page load. I've heard good things about IndexedDB, but I'm not sure that it's well-suited to storing a single giant blob.