Search results
26 paź 2024 · Web developers can check how much space is available for their origin and how much is being used by the origin with the navigator.storage.estimate() method of the Storage API. Note that this method only returns the estimated usage value, not the actual value.
26 lip 2024 · The estimate() method of the StorageManager interface asks the Storage Manager for how much storage the current origin takes up (usage), and how much space is available (quota). This method operates asynchronously, so it returns a Promise which resolves once the information is available.
6 mar 2024 · The StorageManager interface of the Storage API provides an interface for managing persistence permissions and estimating available storage. You can get a reference to this interface using either navigator.storage or WorkerNavigator.storage.
7 cze 2010 · You can use the following code in modern browsers to efficiently check the storage quota (total & used) in real-time: if ('storage' in navigator && 'estimate' in navigator.storage) { navigator.storage.estimate() .then(estimate => { console.log("Usage (in Bytes): ", estimate.usage, ", Total Quota (in Bytes): ", estimate.quota); }); }
17 sty 2023 · Storage quotas and eviction criteria on MDN (which I wrote after releasing this blog post). Storage for the web on web.dev. Below is what I found by reading docs, asking people, and experimenting on my own devices and virtual machines (with this simple test app ).
23 wrz 2024 · An origin can use up to 60% of the total disk space. You can use the StorageManager API to determine the maximum quota available. Other Chromium-based browsers may be different. In incognito mode, Chrome reduces the amount of storage an origin can use to approximately 5% of the total disk space.
The storageQuota property of the Navigator interface of the Quota Management API provides means to query and request storage usage and quota information. You can get a reference to this interface using Navigator.storageQuota. Returns a list of the available storage types.