I am considering using localStorage to store recent searches.

- Privacy friendly, backend doesn't track what you search
- Quicker to load results for previous searches

- I can't think of any. If you can, please reply to this post!

@dansup localStorage is synchronous, loads all content into memory on page navigation (in FF at least), and is capped at 5MB in some browsers. It's good for small data, but you may want to use IndexedDB instead.


@nolan Good idea, thanks for the advice!

Sign in to participate in the conversation

Server run by the main developers of the project 🐘 It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!