Connection type.
Reads the NetworkInformation API: effective type, downlink Mbps, RTT estimate, save-data mode. The browser's own opinion of your network quality.
Chromium-only. Safari and Firefox return 'not exposed' here, even though the underlying connection works fine.
We read navigator.connection (with vendor fallbacks) and dump every field: effectiveType, downlink, downlinkMax, rtt, type, saveData.
Effective type is the most useful single field — sites can branch on it to skip heavy assets. The 'type' field (wifi / cellular / ethernet) is hidden in most browsers for privacy.