In 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.
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.