Answers for "chrome local storage limit"

6

chrome max local storage size

//run this in dev console to test how much local storage you have
try {
	// Test up to 20 MB
	for (var i = 250; i <= 20000; i += 250) {
		localStorage.setItem('test', new Array((i * 1024) + 1).join('a'));
	}
} catch (e) {
	localStorage.removeItem('test');
	console.log('Local Storage Max Size is:', (i - 250)/1000, 'MB');            
}
Posted by: Guest on April-23-2021
7

what is max size for localstorage

about 5MB
Posted by: Guest on June-19-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language