This version is old school.
        Please find jQuery plugins on npm.
      
    FailSafe
      
      by Ram Swaroop
      
    
    A jQuery Plugin to make your App Robust. Protects your App from Lost Internet Connectivity & Low Battery Level.