mardi 1 avril 2014

Does the Local Storage have some kind of internal "optimization" by the browser?


Vote count:

0




Is there any difference between:



localStorage.setItem('foo', 1);


and:



localStorage.setItem('foo', true);


From the point of view of storage requirements? Is there any kind of value optimization carried out by the browser before actually storing data (i.e. compression)?


Please note that I'm assuming that Local Storage can handle any type of data nad not just strings. I'm not sure about this.



asked 9 secs ago

gremo

6,406





Aucun commentaire:

Enregistrer un commentaire