if (navigator.connection) {
    const downlink = navigator.connection.downlink;
    console.log(`Current download speed: ${downlink} Mbps`);
} else {
    console.log("Network Information API not supported");
}

article

Leave a Reply

Your email address will not be published. Required fields are marked *