"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>
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Storage test</title>
</head>
<body>
<script type="text/javascript">
var TestValue = "1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890";
for (var i = 0; i < 1000; i++) {
localStorage.setItem(i, TestValue);
}
</script>
</body>
</html>