I want to set a condition for the login page if an internet connection is available, then check the server database, otherwise check localstorage.
I tried to verify this with an AJAX call, but when the page is loaded from appcache, it always shows me that I am connected to the Internet. I know a little about the backup part of the manifest file, but I don't know how to use it in my case.
What to do to handle events offline?
source
share