Friday, October 19, 2012

sessionStorage and localStorage

I saw Kyle Simpson speak on HTML5 two days ago at IEEE. sessionStorage is used like localStorage in terms of syntax, but sessionStorage lasts until you close the browser tab while localStorage will be around forever if you don't clean it up.

Share photos on twitter with Twitpic

It makes sense to use both sessionStorage and localStorage in lieu of cookies where we used to use cookies in applications. Kyle's slides are at https://speakerdeck.com/u/getify/p/html5-javascript-on-crack-v4

Share photos on twitter with Twitpic

Threading doesn't really exist in JavaScript. If you need a separate, independent process, you need to load another script somehow. An iFrame out to another page does this trick for example. These sort of hacks are called Web Workers.

No comments:

Post a Comment