You can force a browser to report the size of a display:
<meta name="viewport" content="width=device-width">
Which got me wondering if you can do something similar to report the type of internet connection a device is using (mobile data/ wifi)
I ask as I am looking into reducing data download for mobile data devices and am so far using mediaqueries based on screen size, but was wondering if you could then determine if it was connected to wifi instead of their mobile network and increase the data downloaded so i.e. a smartphone user could then have the full site rather than a minimal image/data version.
(not sure which terms to use for a search so not completely sure if this has been asked elsewhere)