3 ms·
By the articles own admission, the problem of the storage being persistent can just be solved by doing sessionStorage instead of localStorage. I was just analy
by dlitwak 15y ago
By the articles own admission, the problem of the storage being persistent can just be solved by doing sessionStorage instead of localStorage.
I was just analyzing websites recently to figure out how they were not sending any data back to their servers while still having AJAX-like responses. We are doing AJAX and the amount of data we are sending back causes 2-3 second delays. Similar sites have accomplished it almost instantaneously.
What I found was that the sites I checked used localStorage, or at least from what I could tell from the minimized javascript. It seems like most of the established players have concluded that there is no better alternative and that they will just need to hack together something with localStorage: which brings me to my request:
Perhaps someone can elaborate not only on the pitfalls of localStorage/sessionStorage, but the best ways of working around them?