Hey there, I am trying to load a large 2.5MB json file in my browser so that I can use it for some typeAhead functions.
Unfortunately, I'm facing an issue with my local storage being constantly full. When using Firefox, I receive the following error in the console:
NS_ERROR_DOM_QUOTA_REACHED: Persistent storage maximum size reached @ http://localhost/www/js/twitter-typeahead.js:223
On Chrome, there are no errors in the console, but the tab running my app is using up 25% of the CPU continuously.
Is there any solution to this problem? How can I effectively load all the strings from the jsonfile into local storage without overloading the browser or maxing out the localstorage capacity?
I have considered breaking down the json file into smaller parts, but ultimately I need to have all the data loaded at once.