Pergunta

I need to implement HTML5 local storage, and also provide support for users that dont have this available in their browser.

After doing some research, I came upon this post HERE, which offered exactly what I needed. In the solutions, someone mentioned PersistJS, which has a lot of fallback methods to save data if localStorage fails.

My question is, is this library still working properly? (No updates for over 2 years on the repository).

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

Thanks a lot.

Foi útil?

Solução

For such questions always take a look at https://github.com/Modernizr/Modernizr/wiki/HTML5-Cross-Browser-Polyfills which lists polyfills for almost every new feature.

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

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

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top