Live data from Hacker News

Store.js - cross browser local storage without using cookies or flash

github.com

31–40 of 63 posts

Re: Store.js - cross browser local storage without using cookies or flash

#31
post #22

Earlier quoted context omitted.

I'm not convinced that IETester changes the underlying APIs correctly. Because of bad experience with "Multiple IE" simulators in the past I don't test on anything but the real install.

I hear you there. I just wish it were easier to have multiple versions of IE laying around without having to boot a VM for each. Heh.

ThinApp [http://en.wikipedia.org/wiki/VMware_ThinApp] is pretty useful when needing to do "classic" browser testing.

Re: Store.js - cross browser local storage without using cookies or flash

#33
post #25

Earlier quoted context omitted.

(to repliers)

This was one of the less obvious uses of sarcasm in recent memory.

It's entirely possible I'm wrong, but I'm hinging my decision largely on the location (hn, where invasive user tracking is synonymous with evil with nearly everyone) and the "sigh".

Re: Store.js - cross browser local storage without using cookies or flash

#34
post #25

I just tested. Like cookies, it also obeys domain-only visibility. So, all hopes for cross-domain user tracking are still doomed. sigh

(to repliers)

I don't think so... If it was sarcastic, it wouldn't really be worth mentioning, like saying Oh great. Another car with airbags!

Re: Store.js - cross browser local storage without using cookies or flash

#35
post #25

Earlier quoted context omitted.

(to repliers)

I don't think so... If it was sarcastic, it wouldn't really be worth mentioning, like saying Oh great . Another car with airbags!

Good point, people never post useless comments.

Re: Store.js - cross browser local storage without using cookies or flash

#36

Lawnchair ( http://brianleroux.github.com/lawnchair/ ) is similar to this, but you have to pick an adapter (see http://github.com/brianleroux/lawnchair for browser list).

In the past I have used PersistJS (http://pablotron.org/?cid=1557) for this. Are there reasons to prefer one or the other of these libraries?

Re: Store.js - cross browser local storage without using cookies or flash

#37

Anyone know of size limitations on this storage? I am in the middle of writing a jQuery plugin and storing data in cookies which have the 4KB size limitation (which resulted in me having to "chunk" the data across several cookies). This looks like the perfect alternative!

Usually 5MB

Re: Store.js - cross browser local storage without using cookies or flash

#38

Anyone know of size limitations on this storage? I am in the middle of writing a jQuery plugin and storing data in cookies which have the 4KB size limitation (which resulted in me having to "chunk" the data across several cookies). This looks like the perfect alternative!

I think Safari defaults to 10MB, though I may have changed it and forgotten doing so.

Re: Store.js - cross browser local storage without using cookies or flash

#39

Lawnchair ( http://brianleroux.github.com/lawnchair/ ) is similar to this, but you have to pick an adapter (see http://github.com/brianleroux/lawnchair for browser list).

In the past I have used PersistJS ( http://pablotron.org/?cid=1557 ) for this. Are there reasons to prefer one or the other of these libraries?

PersistJS is 12kb minified. store.js is 4kb unminified

PersistJS falls back on flash and cookies, which is bad (flash slows down browser during page loading, cookies fatten your network requests). Store.js uses localStorage, globalStorage and IE behaviors which do not have those negative side effects.

Re: Store.js - cross browser local storage without using cookies or flash

#40

Fix issue 1, rename store.del() to store.remove() marcuswestin (author) 18 minutes ago Will the API be stabilized? Or can you alias method names in cases like this, rather than clobbering them?

erlanger: you can consider the API stable now.
Post reply on HN