Interesting. In the past I used localStorage with the storage event. But this seems to work in a different way, I need to look into this because it looks simpler and more complete. Thanks for sharing!
Main problem is it's not really fully supported yet. If we ignore IE (and we should) safari still doesn't have support, which means iOS doesn't either.
Interesting. In the past I used
localStorage
with thestorage
event. But this seems to work in a different way, I need to look into this because it looks simpler and more complete. Thanks for sharing!Main problem is it's not really fully supported yet. If we ignore IE (and we should) safari still doesn't have support, which means iOS doesn't either.
If you want to track it here's the issue on webkit.
I actually tried using local storage for this matter and could not achieve the same result. Just do it!