HTML5 localstorage fallback

I need to implement local HTML5 storage, and also provide support to users who do not have this in their browser.

After some research, I came across this post HERE , which offered exactly what I needed. In solutions, someone mentioned PersistJS , in which there are many backup methods for saving data if localStorage fails.

My question is, is this library working fine? (No updates for more than 2 years in the repository).

And also, maybe there are newer alternatives to achieve this?

Thank you very much.

+4
source share
1 answer

For such questions, always see https://github.com/Modernizr/Modernizr/wiki/HTML5-Cross-Browser-Polyfills , which lists policies for almost every new feature.

which also contains a list for LocalStorage https://github.com/Modernizr/Modernizr/wiki/HTML5-Cross-Browser-Polyfills#web-storage-localstorage-and-sessionstorage

In particular, this feature seems active: https://github.com/marcuswestin/store.js

+3
source

Source: https://habr.com/ru/post/1485830/


All Articles