The browser exposes hundreds of global APIs and remembering which object is the entry point for a given task is half the battle. This quick reference groups the Web APIs you reach for most — networking, storage, DOM, observers, workers, media, and device — with the global name, its purpose, and a usage note.
How it works
Each entry names a browser global (a constructor like IntersectionObserver, a
namespace like navigator.geolocation, or a function like fetch) and places it
in a category:
- Networking —
fetch,WebSocket,EventSource,XMLHttpRequest. - Storage —
localStorage,sessionStorage,indexedDB,caches,Cookie Store. - DOM & events —
document,CustomEvent,MutationObserver. - Observers —
IntersectionObserver,ResizeObserver,PerformanceObserver. - Workers —
Worker,SharedWorker,ServiceWorker. - Media & graphics — Canvas, WebGL, Web Audio,
getUserMedia. - Device & misc — Geolocation, Clipboard, Notifications, Web Crypto.
Notes and tips
Mind the secure-context rule: Service Workers, Geolocation, Clipboard, Web
Crypto’s SubtleCrypto, and getUserMedia only work on HTTPS or localhost.
Prefer the asynchronous, non-blocking APIs — fetch over XMLHttpRequest,
IntersectionObserver/ResizeObserver over scroll/resize listeners, and a Web
Worker for any CPU-heavy task — so the main thread stays responsive.