RSS Amplifier

Ajay Karwal · Oct 16, 2020

Check if user is offline

0
Sign in to vote or save

This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.

It’s pretty easy to check if a user is offline with javascript. window . addEventListener ( 'offline' , ( ) => console . log ( 'is offline' ) ) ; This can be useful to display a warning if your application auto-saves at a regular interval. If the user is offline, the auto-save may fail so a warning message would be a good bit of UX here.

Read on ajaykarwal.com

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.