I need to find out the internet connection speed of user's PC using JavaScript or jquery.
Could someone please look into this?
I need to find out the internet connection speed of user's PC using JavaScript or jquery.
Could someone please look into this?
You can probably do that to estimated download bandwidth in megabytes per second of the current connection.
// Some browsers use prefixes so let's cope with them first
var connection = navigator.connection || navigator.mozConnection || navigator.webkitConnection;
// Check for browser support
if (!!connection) {
// Get the connection type
var type = connection.type;
// Get the connection speed in megabits per second (Mbps)
var speed = connection.downlinkMax || connection.bandwidth;
}