Data >100Mb in Localstorage [duplicate]
up vote
1
down vote
favorite
This question already has an answer here:
Is there a way to increase the size of localStorage in Google Chrome to avoid QUOTA_EXCEEDED_ERR: DOM Exception 22
4 answers
I have a JSON Data to store in local storage which is being used by a lot of components in my application. In some cases, the data exceeds 100 Mb and my browser throws an error, "localStorage.setItem exceeded the quota". But it is very important for me to cache this data as downloading with slow down my application. Could some suggest me a simple and effective way of achieving this?
javascript html5 local-storage
marked as duplicate by CertainPerformance
StackExchange.ready(function() {
if (StackExchange.options.isMobile) return;
$('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');
$hover.hover(
function() {
$hover.showInfoMessage('', {
messageElement: $msg.clone().show(),
transient: false,
position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
dismissable: false,
relativeToBody: true
});
},
function() {
StackExchange.helpers.removeMessages();
}
);
});
});
13 hours ago
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
add a comment |
up vote
1
down vote
favorite
This question already has an answer here:
Is there a way to increase the size of localStorage in Google Chrome to avoid QUOTA_EXCEEDED_ERR: DOM Exception 22
4 answers
I have a JSON Data to store in local storage which is being used by a lot of components in my application. In some cases, the data exceeds 100 Mb and my browser throws an error, "localStorage.setItem exceeded the quota". But it is very important for me to cache this data as downloading with slow down my application. Could some suggest me a simple and effective way of achieving this?
javascript html5 local-storage
marked as duplicate by CertainPerformance
StackExchange.ready(function() {
if (StackExchange.options.isMobile) return;
$('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');
$hover.hover(
function() {
$hover.showInfoMessage('', {
messageElement: $msg.clone().show(),
transient: false,
position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
dismissable: false,
relativeToBody: true
});
},
function() {
StackExchange.helpers.removeMessages();
}
);
});
});
13 hours ago
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
Are you sure thatlocalStorage
allows you to store data up to 100MB?
– Keyur Ramoliya
13 hours ago
I'd use IndexedDB instead.
– CertainPerformance
13 hours ago
@CertainPerformance does it work for all the browsers. I am focussing on at least Chrome, FF & Edge.
– khushboo j
13 hours ago
Yes, IndexedDB is widely supported
– CertainPerformance
13 hours ago
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
This question already has an answer here:
Is there a way to increase the size of localStorage in Google Chrome to avoid QUOTA_EXCEEDED_ERR: DOM Exception 22
4 answers
I have a JSON Data to store in local storage which is being used by a lot of components in my application. In some cases, the data exceeds 100 Mb and my browser throws an error, "localStorage.setItem exceeded the quota". But it is very important for me to cache this data as downloading with slow down my application. Could some suggest me a simple and effective way of achieving this?
javascript html5 local-storage
This question already has an answer here:
Is there a way to increase the size of localStorage in Google Chrome to avoid QUOTA_EXCEEDED_ERR: DOM Exception 22
4 answers
I have a JSON Data to store in local storage which is being used by a lot of components in my application. In some cases, the data exceeds 100 Mb and my browser throws an error, "localStorage.setItem exceeded the quota". But it is very important for me to cache this data as downloading with slow down my application. Could some suggest me a simple and effective way of achieving this?
This question already has an answer here:
Is there a way to increase the size of localStorage in Google Chrome to avoid QUOTA_EXCEEDED_ERR: DOM Exception 22
4 answers
javascript html5 local-storage
javascript html5 local-storage
asked 13 hours ago
khushboo j
113
113
marked as duplicate by CertainPerformance
StackExchange.ready(function() {
if (StackExchange.options.isMobile) return;
$('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');
$hover.hover(
function() {
$hover.showInfoMessage('', {
messageElement: $msg.clone().show(),
transient: false,
position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
dismissable: false,
relativeToBody: true
});
},
function() {
StackExchange.helpers.removeMessages();
}
);
});
});
13 hours ago
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
marked as duplicate by CertainPerformance
StackExchange.ready(function() {
if (StackExchange.options.isMobile) return;
$('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');
$hover.hover(
function() {
$hover.showInfoMessage('', {
messageElement: $msg.clone().show(),
transient: false,
position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
dismissable: false,
relativeToBody: true
});
},
function() {
StackExchange.helpers.removeMessages();
}
);
});
});
13 hours ago
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
Are you sure thatlocalStorage
allows you to store data up to 100MB?
– Keyur Ramoliya
13 hours ago
I'd use IndexedDB instead.
– CertainPerformance
13 hours ago
@CertainPerformance does it work for all the browsers. I am focussing on at least Chrome, FF & Edge.
– khushboo j
13 hours ago
Yes, IndexedDB is widely supported
– CertainPerformance
13 hours ago
add a comment |
Are you sure thatlocalStorage
allows you to store data up to 100MB?
– Keyur Ramoliya
13 hours ago
I'd use IndexedDB instead.
– CertainPerformance
13 hours ago
@CertainPerformance does it work for all the browsers. I am focussing on at least Chrome, FF & Edge.
– khushboo j
13 hours ago
Yes, IndexedDB is widely supported
– CertainPerformance
13 hours ago
Are you sure that
localStorage
allows you to store data up to 100MB?– Keyur Ramoliya
13 hours ago
Are you sure that
localStorage
allows you to store data up to 100MB?– Keyur Ramoliya
13 hours ago
I'd use IndexedDB instead.
– CertainPerformance
13 hours ago
I'd use IndexedDB instead.
– CertainPerformance
13 hours ago
@CertainPerformance does it work for all the browsers. I am focussing on at least Chrome, FF & Edge.
– khushboo j
13 hours ago
@CertainPerformance does it work for all the browsers. I am focussing on at least Chrome, FF & Edge.
– khushboo j
13 hours ago
Yes, IndexedDB is widely supported
– CertainPerformance
13 hours ago
Yes, IndexedDB is widely supported
– CertainPerformance
13 hours ago
add a comment |
1 Answer
1
active
oldest
votes
up vote
1
down vote
Try having the data compressed. This might help depending on your JSON data.
https://coderwall.com/p/mekopw/jsonc-compress-your-json-data-up-to-80
This api says it compresses up to 80% of data in a JSON string.
I believe this is the JS file from it
https://github.com/tcorral/JSONC/blob/master/src/JSONC.js
New contributor
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
Try having the data compressed. This might help depending on your JSON data.
https://coderwall.com/p/mekopw/jsonc-compress-your-json-data-up-to-80
This api says it compresses up to 80% of data in a JSON string.
I believe this is the JS file from it
https://github.com/tcorral/JSONC/blob/master/src/JSONC.js
New contributor
add a comment |
up vote
1
down vote
Try having the data compressed. This might help depending on your JSON data.
https://coderwall.com/p/mekopw/jsonc-compress-your-json-data-up-to-80
This api says it compresses up to 80% of data in a JSON string.
I believe this is the JS file from it
https://github.com/tcorral/JSONC/blob/master/src/JSONC.js
New contributor
add a comment |
up vote
1
down vote
up vote
1
down vote
Try having the data compressed. This might help depending on your JSON data.
https://coderwall.com/p/mekopw/jsonc-compress-your-json-data-up-to-80
This api says it compresses up to 80% of data in a JSON string.
I believe this is the JS file from it
https://github.com/tcorral/JSONC/blob/master/src/JSONC.js
New contributor
Try having the data compressed. This might help depending on your JSON data.
https://coderwall.com/p/mekopw/jsonc-compress-your-json-data-up-to-80
This api says it compresses up to 80% of data in a JSON string.
I believe this is the JS file from it
https://github.com/tcorral/JSONC/blob/master/src/JSONC.js
New contributor
edited 13 hours ago
New contributor
answered 13 hours ago
DarkHeart Productions
563
563
New contributor
New contributor
add a comment |
add a comment |
Are you sure that
localStorage
allows you to store data up to 100MB?– Keyur Ramoliya
13 hours ago
I'd use IndexedDB instead.
– CertainPerformance
13 hours ago
@CertainPerformance does it work for all the browsers. I am focussing on at least Chrome, FF & Edge.
– khushboo j
13 hours ago
Yes, IndexedDB is widely supported
– CertainPerformance
13 hours ago