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?










share|improve this question













marked as duplicate by CertainPerformance javascript
Users with the  javascript badge can single-handedly close javascript questions as duplicates and reopen them as needed.

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();
}
);
});
});
yesterday


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 that localStorage allows you to store data up to 100MB?
    – Keyur Ramoliya
    yesterday












  • I'd use IndexedDB instead.
    – CertainPerformance
    yesterday










  • @CertainPerformance does it work for all the browsers. I am focussing on at least Chrome, FF & Edge.
    – khushboo j
    yesterday










  • Yes, IndexedDB is widely supported
    – CertainPerformance
    yesterday















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?










share|improve this question













marked as duplicate by CertainPerformance javascript
Users with the  javascript badge can single-handedly close javascript questions as duplicates and reopen them as needed.

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();
}
);
});
});
yesterday


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 that localStorage allows you to store data up to 100MB?
    – Keyur Ramoliya
    yesterday












  • I'd use IndexedDB instead.
    – CertainPerformance
    yesterday










  • @CertainPerformance does it work for all the browsers. I am focussing on at least Chrome, FF & Edge.
    – khushboo j
    yesterday










  • Yes, IndexedDB is widely supported
    – CertainPerformance
    yesterday













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?










share|improve this question














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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked yesterday









khushboo j

113




113




marked as duplicate by CertainPerformance javascript
Users with the  javascript badge can single-handedly close javascript questions as duplicates and reopen them as needed.

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();
}
);
});
});
yesterday


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 javascript
Users with the  javascript badge can single-handedly close javascript questions as duplicates and reopen them as needed.

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();
}
);
});
});
yesterday


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 that localStorage allows you to store data up to 100MB?
    – Keyur Ramoliya
    yesterday












  • I'd use IndexedDB instead.
    – CertainPerformance
    yesterday










  • @CertainPerformance does it work for all the browsers. I am focussing on at least Chrome, FF & Edge.
    – khushboo j
    yesterday










  • Yes, IndexedDB is widely supported
    – CertainPerformance
    yesterday


















  • Are you sure that localStorage allows you to store data up to 100MB?
    – Keyur Ramoliya
    yesterday












  • I'd use IndexedDB instead.
    – CertainPerformance
    yesterday










  • @CertainPerformance does it work for all the browsers. I am focussing on at least Chrome, FF & Edge.
    – khushboo j
    yesterday










  • Yes, IndexedDB is widely supported
    – CertainPerformance
    yesterday
















Are you sure that localStorage allows you to store data up to 100MB?
– Keyur Ramoliya
yesterday






Are you sure that localStorage allows you to store data up to 100MB?
– Keyur Ramoliya
yesterday














I'd use IndexedDB instead.
– CertainPerformance
yesterday




I'd use IndexedDB instead.
– CertainPerformance
yesterday












@CertainPerformance does it work for all the browsers. I am focussing on at least Chrome, FF & Edge.
– khushboo j
yesterday




@CertainPerformance does it work for all the browsers. I am focussing on at least Chrome, FF & Edge.
– khushboo j
yesterday












Yes, IndexedDB is widely supported
– CertainPerformance
yesterday




Yes, IndexedDB is widely supported
– CertainPerformance
yesterday












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






share|improve this answer










New contributor




DarkHeart Productions is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

























    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






    share|improve this answer










    New contributor




    DarkHeart Productions is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.






















      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






      share|improve this answer










      New contributor




      DarkHeart Productions is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




















        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






        share|improve this answer










        New contributor




        DarkHeart Productions is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        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







        share|improve this answer










        New contributor




        DarkHeart Productions is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        share|improve this answer



        share|improve this answer








        edited yesterday





















        New contributor




        DarkHeart Productions is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        answered yesterday









        DarkHeart Productions

        563




        563




        New contributor




        DarkHeart Productions is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.





        New contributor





        DarkHeart Productions is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.






        DarkHeart Productions is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.















            Popular posts from this blog

            Saint-Aignan (Tarn-et-Garonne)

            Volksrepublik China

            How to test boost logger output in unit testing?