Progressive Web App with Caching and Code Splitting

161 views
Skip to first unread message

Gernot Pansy

unread,
Aug 3, 2017, 6:00:55 PM8/3/17
to GWT Users
Hi,

I wan't to convert my GWT (2.8.1) application to an progressive web app and add code splitting. I already build a custom Linker which creates a service worker file automatically and the caching is working except of the deferred fragemnts.
My service worker is not called if the are loaded, it seems they are loaded outside of the scope.


If you look in the chrome console, all request are loaded trough the service worker but not the fragments (only once in install phase, because the are all files cached).

Here is still the old language property used on the script tag.

Has anyone an idea how to fix that?

cheers,
gernot

Gernot Pansy

unread,
Aug 7, 2017, 10:21:19 AM8/7/17
to GWT Users
I got it myself working, with a extended Linker and the using of XhrFragementLoader.

Slava Pankov

unread,
Aug 7, 2017, 2:05:27 PM8/7/17
to GWT Users
It would be really nice if you share details or even code of your implementation.

Juan Pablo Gardella

unread,
Aug 7, 2017, 2:07:56 PM8/7/17
to GWT Users
+1

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-tool...@googlegroups.com.
To post to this group, send email to google-we...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

zakaria amine

unread,
Aug 10, 2017, 2:28:34 PM8/10/17
to GWT Users
It you be great if you can share your solution.
Reply all
Reply to author
Forward
0 new messages