Harry Roberts avatar Harry Roberts

Obs.js – context-aware web performance for everyone

Screenshot of “Obs.js – context-aware web performance for everyone”

Obs.js reads a handful of browser signals (Navigator and Battery APIs) to infer connection strength, battery status, and device capability. It exposes those signals as CSS classes on the <html> element, and as properties on window.obs, so you can adapt delivery accordingly: serve lower-resolution media, forgo web fonts, disable auto-playing video… you name it.