The reading room
Browser troubleshooting guides.
Understand browser memory, local storage, downloads, permissions, and network failures before changing settings.
30 guides · Examples, explanations, and practical limits.
In this topic
30 articles
Can a browser test measure your physical RAM?
A browser allocation test measures what a particular page can allocate under current conditions. It does not establish the total physical RAM in the computer or…
Investigate a tab crash without guessing the cause
A closed or reloaded tab does not identify one definitive cause. Record what happened and isolate the workload before concluding that memory, an extension, a browser…
Distinguish JavaScript heap from total browser memory
JavaScript heap measurements cover only part of a browser’s resource use. Images, native objects, graphics buffers, and other processes can make total browser memory…
Try a small, bounded byte-buffer allocation
Start with a modest typed-array allocation when investigating browser memory behavior. Keep the byte count explicit and do not use an unbounded loop that keeps…
Why memory may stay high after removing a reference
Making an object unreachable allows garbage collection but does not force immediate collection or an immediate drop in process memory. Separate logical reachability…
Make a repeatable browser memory-leak check
Investigate a suspected leak with a repeatable action and comparable snapshots. Persistent growth after repeated create-and-remove cycles is more useful evidence than…
Avoid retaining removed DOM nodes
Removing a node from the document does not destroy JavaScript references to it. A detached node can remain alive if application state, a listener closure, or…
Why a small image download can use much more memory
Compressed download size and decoded image memory are different quantities. Pixel dimensions can make a highly compressed image expensive to decode and display even…
Account for Base64 copies during file processing
Base64 represents three input bytes with four output characters before padding details. Converting a large file into Base64 can therefore increase payload size and…
Why reading a JSON file can create several copies
A JSON import can retain file bytes, a decoded text string, a parsed object graph, and derived arrays at the same time. A file that fits on disk may still exceed a…
Understand which pages share browser storage
Browser storage is generally scoped by origin, not by a page’s folder name. Pages with the same protocol, hostname, and port can share an origin even when they live…
Choose between localStorage and sessionStorage
Use localStorage for small origin-scoped values that may persist across sessions, and sessionStorage for values scoped to a page session. Both APIs store strings and…
Inspect an estimated browser storage quota
Use navigator.storage.estimate when available to inspect an origin’s estimated usage and quota. These are browser-managed storage figures, not free physical RAM or a…
Handle browser storage quota failures
Catch storage write failures and preserve a usable recovery path. Quota exhaustion, privacy settings, and restricted contexts can all make a write fail even when the…
Request persistent storage when it is justified
Persistent storage can reduce automatic eviction risk for important offline data. Check support and request it in a user-appropriate workflow rather than assuming a…
Remove only your tool’s browser-storage keys
Prefer removing a known application key to calling localStorage.clear. Tools sharing an origin may store unrelated data in the same area, so broad cleanup can erase…
Do not rely on private-mode data surviving
Private browsing changes the lifetime and availability of browser data. Treat local saved state as temporary in that context and offer an explicit export for…
Why a page opened from disk behaves differently
A page opened with a file URL can have different origin, storage, and fetch behavior from the same page served over HTTP. Test a website through a local server before…
Check whether a service worker serves stale content
If a deployed page stays stale after an update, inspect service-worker registrations and cache behavior before repeatedly editing the source. A registered worker can…
Distinguish browser cache from CDN cache
A hard reload changes browser cache behavior but may still receive a stale response from a CDN or service worker. Inspect response headers and content at each layer…
Find out whether a download was created or blocked
When a download appears missing, first establish whether the browser started it. Check the downloads interface, response status, suggested filename, and any blocking…
Release object URLs when a preview is finished
An object URL lets a page refer to a Blob without embedding all its bytes in a data URL. Revoke it when the preview or download no longer needs it, not immediately…
Use a worker to preserve interface responsiveness
A Web Worker can run CPU-heavy processing away from the page’s main thread. It can make the interface more responsive, but does not automatically reduce total memory…
Handle clipboard access failures gracefully
Clipboard writes can require a secure context, browser permission, and a direct user interaction. Trigger copying from a visible control and provide a manual fallback…
Check whether a page is a secure context
Use window.isSecureContext when diagnosing an API that requires a trustworthy context. HTTPS is the usual deployed requirement, while browsers can also treat certain…
Treat permission state as context-specific
The Permissions API can expose a supported permission’s state, but not every browser supports every descriptor. Query defensively and still handle the actual…
Separate a DNS failure from a website error
If the browser cannot resolve a hostname, the request has not reached the normal HTTP page-response stage. A 404 or 500 is a different failure because an HTTP…
Do not treat navigator.onLine as an API health check
Navigator.onLine is a connectivity hint, not proof that your particular API is reachable. Attempt the real request and handle its outcome even when the browser…
Check whether a browser extension changes a page
Use a controlled clean profile or selectively disabled extensions when a page behaves differently on one browser installation. Compare the same URL and input rather…
Why timers slow down in background tabs
Browsers can throttle timers and other work when a tab is hidden. A delayed interval does not necessarily mean a script has stopped or the server has failed.
No matching articles. Try another title or topic.