Personally, I always think of and use local storage as a cache. And I'm that vein, just like a fetch request, I have to parse and encode JSON anyway and abstract how I interface with it.

It really depends on your needs and usage patterns. I remember implementing basic SCORM, which was a synchronous API and blocking and sucked. The use of local storage should not have nearly that many calls.

It really depends.

Michael J. Ryan
Michael J. Ryan

Written by Michael J. Ryan

Food nerd (keto, omad, carnivore) — Programmer and JavaScript junkie! (node.js, mongodb, browser)

No responses yet