Network Information API allows web apps to access information about the network connection in use by the device.
This can be used to serve high definition content or low definition content based on the network connection.
https://nectar.website/demo/web-apis/network-information/arrow-up-right
You can refer to the code present in /partials/web-apis/network-information.html file and use it accordingly.
/partials/web-apis/network-information.html
https://developer.mozilla.org/en-US/docs/Web/API/Network_Information_APIarrow-up-right
Last updated 3 years ago