Standalone mobile site

Is it possible to have a mobile website that can work if there is no internet connection?

The user should still be able to use the website (if he has visited this page before), see the data (which were downloaded earlier), add new material (cache locally). When the Internet connection returns to the Internet, all changed local data must be pushed online.

It should be a complete web solution, not a native application.

+5
source share
2 answers

You should take a look at HTML5 offline storage, see http://diveintohtml5.ep.io/offline.html and the Offline Web Applications spec at the beginning. There are also a few posts in SO.

+4
source

Bookmarks work when the user is offline. The trick with the bookmarklet is that it fully contains javascript wrapped in such a way that it can live inside the bookmark itself. For instance. a javacsript:URL. You can also use the data:URL as a bookmark, which can be a full HTML page. This is usually base64 encoded with the mime type.

, data:text/html,base64, , , "" , .

+1

All Articles