Synchronize my webpage with the server when a connection is available (offline AKA)

I want my web page to allow the user to add data, even if he is offline and possibly stores the data in local storage (cookies, html5 storage). When the user reconnects to the network, the page should detect a live connection and send data to the server.

Is there a basic way to do this? Maybe a javascript library or a plugin?

+3
source share
2 answers
+2
source

Perhaps the Google Gears and Gears API ?

0
source

Source: https://habr.com/ru/post/1737411/


All Articles