Javascript toolkit for offline webapps

we are creating a webapp survey that will allow the user to add new entries to the survey offline and will load when the browser reconnects to the server.

We determined that this would require offline storage, and therefore google mechanisms seem like an obvious choice (we understand that Adobe Flash has offline storage, but I'm not sure if this is the best way).

I know Dojo offline javascript toolkit that uses google gears for basic functions. However, dojo is not included in the dojo toolkit after version 1.3. (currently dojo is 1.4.2).

The Google gears tool is now frozen, with the exception of critical fixes for vulnerabilities (it has not been updated for almost the last 1 year), since they believe that HTML 5 is a way forward. Therefore, we are looking for a higher abstraction over the Google Gears TODAY engine, and which (in the future) will switch the base engine to HTML5 if the browser supports HTML5 standards. We would like to use dojo, but they are disabled by dojo offline - we would prefer something that will be supported for some time.

What are the possible good strategies, JS tools / libraries to be used to create this webapp?

Pls. advise.

+4
source share
1 answer

There are several libraries that you can get, they all use the material and try to degrade between, flash, html5 and cookies. However, none of them really provides a complete set for battery life in general. So, are you stuck with the parts you want to use offline in the database? manifest (images, styles, scripts)?

In a general sense, offline storage is the only part that can be used today; images / styles / scripts are not possible if you are not using newer browsers.

Best known for offline storage: http://pablotron.org/software/persist-js/

In combination with TaffyDB: http://taffydb.com/

You can make a standalone data storage solution in ie6 and up. Again things like images, script, styles (which are not built-in) will not come up with old browsers. To read about creating a manifest for a new standalone browser, you can read: http://www.w3.org/TR/html5/offline.html

I made my own, but its not very good: http://www.gorilla3d.com/v8/html5-storage-off-line-cross-browser-support.html

+3
source

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


All Articles