Check for Internet connectivity in your web app

akshitsethi —  October 10, 2013 — Leave a comment

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.

akshitsethi

Posts

I am a designer+developer by profession and entrepreneur by passion. I work on LAMP platform and can design+develop small static websites to high performing enterprise web applications. In love with the web and addicted to Spanish.