cancel
Showing results for 
Search instead for 
Did you mean: 

"localStorage.setItem" is 1000 times slower than in IE,Opera,Chrome.Is it normal?

Highlighted
New Contributor

"localStorage.setItem" is 1000 times slower than in IE,Opera,Chrome.Is it normal?

Hi. If you try to open this HTML page in Firefox 3.6.8, Firefox is 1000 times slower than IE 8,Opera 10 and Chrome. I cannot believe that localStorage.setItem is so slow in Firefox. Is there a solution ? Thanks in advance

<title>Storage test</title> <script type="text/javascript"> var TestValue = "1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890"; for (var i = 0; i < 1000; i++) { localStorage.setItem(i, TestValue); } </script>