Echo JS 0.11.0

<~>
mxxx 1970 days ago. link 1 point
What this doesn't mention is that unless cross-browser support isn't really important to you, you can't really use localStorage without some sort of fallback, because 

a) it's not available in certain browsers under certain conditions (ie, safari private mode)
b) it's prone to failure under certain conditions (workstation security policies seem to affect IE11, there's also a limit on how much storage can be allocated)


we do a few things in our web app with localStorage and eventually the failure rate was high enough that we had to implement a fallback that actually uses cookies under the hood. sadly it's one of those neat browser APIs that not everybody decided to implement properly and as a result can't be relied on :/

Replies