Just wondering what are the actual benefits of using HTML5’s sessionStorage when storing HTML content to be used in a Javascript carousel?
Is it performance related? Load Times? Bandwidth?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes you’ll use less bandwidth, it’ll be better for performance because you can store information in your browser up to 5Mb. It’s much more than with cookie.
For instance to set an item in the storage you can do:
and to get the item
The sessionStorage is relative to each subdomain/domain.