Https://download-speed.glitch.me/

A simple project to estimate the user’s current connection speed.
Helpful if you need to supply different files for “slow”, “medium” and “fast” connections, eg images, mp3s or videos.
it uses the navigator.connection api and falls back to speed testing via images.
hope it’s helpful to you.