IITC-CE / ingress-intel-total-conversion

intel.ingress.com total conversion user script with some new features. Should allow easier extension of the intel map.
https://iitc.app
ISC License
291 stars 109 forks source link

Switch localStorage with localForage #230

Open Aradiv opened 5 years ago

Aradiv commented 5 years ago

currently we are using localStorage extensivly.

But localStorage has multiple downsites that slow down iitc.

With localForage there is a lightweight and easy to use libary that allows to easily switch to indexdb/websql (if available and will fallback to localStorage if not)

johnd0e commented 5 years ago

@Aradiv localForage looks promising. Are there some other alternatives to choose from?

johnd0e commented 4 years ago

https://developers.google.com/web/fundamentals/instant-and-offline/web-storage/offline-for-pwa (or https://developers.google.com/web/ilt/pwa/working-with-indexeddb) recommends idb: https://github.com/jakearchibald/idb#readme (or https://github.com/jakearchibald/idb-keyval#readme)

And there are many similar:

And I like https://pouchdb.com/ 'cause it syncs. But again, there are alternatives, e.g. https://kintojs.readthedocs.io/en/latest