Unpoly as a PWA

167 views
Skip to first unread message

Adam Daniels

unread,
Feb 21, 2018, 5:09:55 PM2/21/18
to unpoly
Has anybody implemented Unpoly in a PWA scenario?

I wonder if a service worker could be paired with up.proxy to give us the Unpoly goodness and appease the PWA requirements that Chrome is currently imposing.

Thoughts?

svsdehh

unread,
Feb 22, 2018, 1:28:23 AM2/22/18
to unpoly
yes, my application is a pwa and I have recently enhanced some pages with unpoly -- but with mixed results (see my question in this group).

Kind regards
Sven

Henning Koch

unread,
Feb 22, 2018, 3:25:38 AM2/22/18
to unp...@googlegroups.com
Last Christmas I made a strawman proposal for how Unpoly could improve
browser behavior when offline:

http://triskweline.de/unpoly-offline/

Introducing a default Service Worker is a small part of the proposal
(last section in the slides).

I'm still quite convinced of most of the strawman: Showing links
reachability, rescuing unsaved forms, extending cache duration when offline.

However I have recently become unsure about adding a default Service
Worker. create-react-app has recently added a default Service Worker,
but removed it again because of spotty browser support and unexpected
behavior for novice users
(https://github.com/facebook/create-react-app/issues/2398).

Best regards
Henning
> --
> You received this message because you are subscribed to the Google
> Groups "unpoly" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to unpoly+un...@googlegroups.com
> <mailto:unpoly+un...@googlegroups.com>.
> To post to this group, send email to unp...@googlegroups.com
> <mailto:unp...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/unpoly/1444d9ac-55a6-41a4-be05-605af54f0a16%40googlegroups.com
> <https://groups.google.com/d/msgid/unpoly/1444d9ac-55a6-41a4-be05-605af54f0a16%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.

Adam Daniels

unread,
Feb 23, 2018, 3:54:10 PM2/23/18
to unpoly
Thanks for the replies.

I agree that a service worker shouldn't be default in Unpoly, but happy to know that my thought process was similar re: moving the Unpoly proxy cache into the worker. With Apple announcing service worker support for Safari, it might change the current opinion on service workers.

I was hoping to be able to trigger the Add to Desktop style modals that Chrome will present under specific PWA criteria - but I've heard that an empty service worker will do that anyways, regardless of any fetching / caching done.

I guess we'll see what happens :)

(Henning, you should have a list of your Unpoly presentations somewhere. The unpoly-rugb talk was full of great tidbits that weren't on the website, IIRC.)

Philippe Jadin

unread,
May 7, 2020, 10:22:33 AM5/7/20
to unpoly
Hello,

Reviving this thread : is there any experiment in using unpoly and recomendations for doing it properly in 2020?

Unpoly + PWA methodology will most probably rocks!
Reply all
Reply to author
Forward
0 new messages