Check for Internet connectivity in your web app

failsafeIn this tutorial, I will show you how to detect user’s connection status and show message if the connection is lost. Let’s see how we going to do this using jQuery.


Here are the important links. Demo or Download


For this tutorial, I will be using failsafe jQuery plugin by Ram Swaroop. This awesome plugin makes our task a breeze. To check for connectivity using this plugin is as easy as pasting the below jQuery code in your document.


Hope you enjoyed this small piece of code. For getting instant updates via email, join my mailing list and I promise you won’t be spammed.