Developer builds lightweight browser speedtest in vanilla JS using Cloudflare API
A developer has built a functional internet speed testing tool using only HTML, CSS, and roughly 250 lines of vanilla JavaScript, with no frameworks or dependencies required. The tool measures ping, download, and upload speeds by leveraging Cloudflare's public speedtest API endpoints, which support CORS and require no API key. Unlike commercial speedtest platforms that load several megabytes of tracking scripts, this entire tool is delivered in under 50 KB as a single HTML file. Download speed is measured in real time using the browser's Streams API, while ping is calculated by averaging multiple HTTP round-trip times and discarding outliers. The project is available as a live demo and was built primarily for transparency, minimal size, and direct control over how results are interpreted.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in