htmlifier icon indicating copy to clipboard operation
htmlifier copied to clipboard

Add to Home Screen (progressive web app) functionality

Open avodonosov opened this issue 4 years ago • 4 comments

Idea.

It may be good to have an option to include the "Add to Home screen" functionality into the generated HTML, so that mobile users can "install" the project.

https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps/Add_to_home_screen

avodonosov avatar Sep 26 '21 01:09 avodonosov

This cannot be added to an HTML file I think; it'll have to require the zip option since the manifest file has to be separate

SheepTester avatar Sep 26 '21 01:09 SheepTester

Yes, the single file won't work. Only .zip bundles.

BTW, another useful option could be to use Service Worker to cache the app assets, so the apb can work offline (as done in the Add to Home screen documentation link above). It would probably be useful both for the Add to Home screen, and without it.

avodonosov avatar Sep 26 '21 02:09 avodonosov

Would that make loading quicker?

UtterDonkey avatar Sep 27 '21 14:09 UtterDonkey

It would make the loading time independent of your network speed because it's loading from your computer's file system. However, it's probably not going to be immediate because reading and storing all that in memory takes some time

SheepTester avatar Sep 27 '21 18:09 SheepTester