How to Check the Internet Connection Status with JavaScript | Async Await | Offline | Online

Описание к видео How to Check the Internet Connection Status with JavaScript | Async Await | Offline | Online

Web Dev Roadmap for Beginners (Free!): https://bit.ly/DaveGrayWebDevRoadmap

In this video we'll discuss JavaScript Offline / Online / Internet Connection Detection methods and I'll provide a modern JS solution with Async / Await. All in less than 6 minutes!

📚 My article in #freeCodeCamp news: (includes async load event I forgot to put in video!)
https://www.freecodecamp.org/news/how...

✅ Quick Concepts outline:
• navigator.onLine
• online and offline events
• Seems good, but there is a problem
• CanIUse.com navigator.onLine notes
• MDN web docs on navigator.onLine
• A Better Modern JS Solution

📺 GitHub Gist for the code: https://gist.github.com/gitdagray/f31...

📚 Further Reading:
MDN Web Docs - navigator.onLine: https://developer.mozilla.org/en-US/d...

MDN Web Docs - setInterval: https://developer.mozilla.org/en-US/d...

MDN Web Docs - Async & Await: https://developer.mozilla.org/en-US/d...

✅ Follow Me:
Twitter:   / yesdavidgray  
Medium:   / davegray_86804  

#Javascript #Internet #Connection

Комментарии

Информация по комментариям в разработке