navigator.connection
The Network Information interface: your connection class and a round-trip estimate. What it reports, how coarse it is, and which browsers refuse it.
Checking the browser you are reading this in…
Entry in question 2: What it says about your machine
What it is
A small object describing your network as the browser currently understands it: an effective type from a short list, a rough downlink estimate in megabits, a round-trip time rounded to a multiple of twenty-five milliseconds, and a flag for whether you have asked for reduced data use.
What a site can do with it
It lets a site drop to smaller images on a slow connection, which is the reason it exists. The round-trip estimate is the part worth knowing about, because it changes as your network changes and therefore says something about where you are and what you are connected to, in a way the other fields on this page do not.
Check it yourself
Open your browser's developer tools, go to the console, and paste this. Nothing is sent anywhere; the answer comes from the browser you are reading this in.
navigator.connection?.effectiveType The full path recorded by the walk is navigator.connection, and that is the string the leaflet prints beside this entry.
What the answer is on an ordinary browser
Written by hand for each of the three engines, because a table generated from one sentence would be worth nothing to the person reading it.
- Chrome
- Present on desktop and Android.
- Firefox
- Absent on desktop. Mozilla did not ship it outside Android.
- Safari
- Absent. Apple declined to implement it.
If your browser is not present, the leaflet prints this instead of dimming the line: Not present. Sites adapting to a slow connection have to measure it themselves.
Where it sits in the leaflet
This is one of 9 entries in question 2, what it says about your machine. The leaflet reads all 42 entries in one press and prints each answer beside the question, with the property name next to it so you can check any line.