I am working on a mobile web site (mostly for Android) and I have a wire (approximately 20 characters) On the side, I wonder which method is more efficient based on performance, local storage or cookie? I would use javascript to write both cookies or local storage. The server is not supposed to work in any part to make cookies.
I got some test results for this, but I did not feel right for me and got some questions on stack overflow but they did not even answer my question. If any good article or test knows, please help.
Even if I can not come up with some This means cookies will not be HTTP Request while My suggestion is clearly jsPerf examples Along with, the localhourage access time should be faster than reading cookies. But that is not your only concern about that context, especially when you are working with mobile devices where is the time of request and performance is crucible. localStorage data. localStorage .
No comments:
Post a Comment