The title is not clickbait, the message is abrupt “Stop Using localStorage!” there is no ambiguity here and we are not holding hands and singing K

Stop Using localStorage!

submited by
Style Pass
2024-06-12 01:30:04

The title is not clickbait, the message is abrupt “Stop Using localStorage!” there is no ambiguity here and we are not holding hands and singing Kumbaya to soften the blow.

localStorage came about around 2009 as a 5MB string based storage. Let’s cut to the chase with some bullet points since our attention spans are in disarray these days:

WebSQL aimed to be a simple SQL database interface for the web. It had some decent support but eventually faced challenges that led to deprecation.

Eventually, IndexedDB became the “recommended” standard for client-side storage, being seen as more robust and cross-browser friendly. But what good is “recommended” when the majority of experienced front-end developers at the time of this article have avoided it like the plague?

Some of you were not even born when cookies were effing stuff up. The title of this article should be “Stop Using Cookies and localStorage” but that’s a very difficult fight, (yes we should use secure cookies)

Leave a Comment