Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

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');            
}
Comment

PREVIOUS NEXT
Code Example
Javascript :: axios file upload 
Javascript :: box shadow javascript style change 
Javascript :: max value in array javascript 
Javascript :: javascript hasownproperty 
Javascript :: js conditional object property 
Javascript :: how to append to file in js 
Javascript :: getelementbyid 
Javascript :: string to JSONobject + android 
Javascript :: visual studio code cursor color 
Javascript :: js delete element by id 
Javascript :: remove accesnt and simbols and paranthesis from text js 
Javascript :: Error: Timeout of 2000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. 
Javascript :: javascript random letter generator 
Javascript :: object foreach 
Javascript :: read data from json using node 
Javascript :: This version of CLI is only compatible with Angular versions 0.0.0 || ^10.0.0-beta || =10.0.0 <11.0.0, but Angular version 9.1.3 was found instead. 
Javascript :: valid filename regex 
Javascript :: deep clone array in javascript 
Javascript :: edit json via nodejs 
Javascript :: JavaScript performing an integer division 
Javascript :: javascript date difference in months 
Javascript :: jest assert if empty array 
Javascript :: get everything between two characters regex 
Javascript :: conditionally set checkbox state in React 
Javascript :: document load complete jquery 
Javascript :: how to make a plinko game using javascript 
Javascript :: como pegar as propriedades css de um elemento :after html com js 
Javascript :: remove attribute disabled javascript 
Javascript :: javascript get date midnight today 
Javascript :: how to set header in angular 8post 
ADD CONTENT
Topic
Content
Source link
Name
8+7 =