Joined December 2012
·

Fardin Koochaki

UI/UX Designer and Application Developer at Loca.fm
·
Tehran, Iran
·

Posted to Make use of Web Workers over 1 year ago

@jiewmeng I wrote a damn long comment and suddenly deleted it! :D
Long story short:

XMLHttpRequest is mentioned in MDN and I really have no Idea how that works as I've got used to jQuery for the messy stuff!

LocalStorage's API writes all data directly into filesystem, so it has to lock the file. and it's done synchronously.
Of course I'm not talking about a simple application with a single AJAX Request or LocalStorage transaction; but in case of a Facebook like app, you can be waiting seconds for a single transaction or even the browser might crash (as it does in most alike situations)! Let me add that, a file can get locked for different reasons.

Read more in references above and here:
http://www.nczonline.net/blog/2012/03/07/in-defense-of-localstorage/

Regards.

Achievements
33 Karma
2,392 Total ProTip Views