title: How to check if an active internet connection exists?
body: <p>Normally one would use <code>navigator.onLine</code>. This works fine for 90% of scenarios.</p>
  
  <p>What about if you are connected to a Wi-Fi network but have 100% packet loss? The <code>onLine</code> property described above will tell you that you are connected as your connection to the network is fine, but you have absolutely no <strong>internet</strong> connection. Is there any way to get around this?</p>
  
  <p>I simply want to check if a working internet connection is present.</p>