![]() All you have to do to store content on the user’s machine is to access the navigator.localStorage (or sessionStorage if you don’t need the data to be stored longer than the current browser session): There is a storage specification (falsely attributed to HTML5 in a lot of examples) with an incredibly simple API that was heralded as the cookie killer when it came out. In a lot of cases, however, they really are not as good as they seem but we only find out after using them for a while that we are actually “doing it wrong”. Sometimes they are good, and all that stops us from using them is our notion of being conspicuous about *everything* as developers. ![]() ![]() When it comes to web development you will always encounter things that sound too good to be true. Sadly enough the alternatives are not nearly as supported or simple to implement. TL DR: we have to stop advocating localStorage as a great opportunity for storing data as it performs badly.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |