Use Online and Offline Events to Avoid Errors
Watch this video to learn how to handle for losses in internet connection with online and offline events in just 5 minutes with no additional plugins or libraries. Check out the code: https://codepen.io/carmalou/pen/KLvQpv
source