title: Is there a way to detect whether user is on wifi or cellular data with javascript?
body: <p>I want the video to autoplay on the website only if the user is connected to the wifi. I know about the navigator.connection api - but it's not available on safari, and besides it only tells you about the speed of the connection not the type. </p>