For a game we're working on we are currently looking to segment our users into "can download loads of data quickly" and "is on a slow connection" so we can ship different types of assets (e.g. fewer animations, smaller images, etc). To do so we have to make a decision very quickly, so "download an image and measure time" won't work that well.
So far I've only found https://www.maxmind.com/en/geoip2-connection-type-database which would allow me a rough segmentation by connection type, but I was hoping to avoid setting up a backend infrastructure. Does anyone know of any other service or method to detect the type or speed of an http connection? We're not looking for 100% accuracy, just a rough indication.
Thanks!
Edit: Solutions in How to detect internet speed in Javascript? are using downloads of a known payload to detect internet speed. We were hoping to avoid those (to not block our actual download) and use passive (IP or browser feature based) means instead.