Thursday, August 3, 2017

Progressive Web App with Caching and Code Splitting

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.

The same happens in this demo: http://www.g-widgets.com/2016/08/11/progressive-web-apps-recipes-for-gwt/

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).

Seems that this is the relevant code: https://github.com/gwtproject/gwt/blob/master/dev/core/src/com/google/gwt/core/ext/linker/impl/runAsync.js
Here is still the old language property used on the script tag.

Has anyone an idea how to fix that?

cheers,
gernot

--
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-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment