test internet connection speed code example

Example 1: wifi test

If you are reading this your wifi is working

Example 2: speedtest

You can use WebTools, it's an addon that gather the most useful and basic tools 
such as a speedtest, a dictionary, a translator, a youtube convertor and
many others (there are ten of them).
You can access them in two clics, without having to open a new tab 
and without having to search for them !

-Chrome Link : 
https://chrome.google.com/webstore/detail/webtools/ejnboneedfadhjddmbckhflmpnlcomge/

Firefox link : https://addons.mozilla.org/fr/firefox/addon/webtools/