title: How can I detect internet connection in Asp.Net MVC to use Google Maps?
body: <p>I am developing an Asp.Net MVC application that uses Google maps to show Addresses in a map. The problem is that I need to demo the app in an environment not connected to internet. How can I detect with an script that the app is disconnected not to call the Google maps api functions?</p>