Revision history [back]

click to hide/show revision 1
initial version

answered 2020-10-22 12:58:37 +0800

hawk gravatar image hawk

http://hawkphoenix.blogsp... ZK Team

PWA represents a new philosophy for building web apps. It's not created by a single technology. You can make your web apps more like PWA by matching a set of criteria. Please refer to https://developer.mozilla.org/en-US/docs/Web/Progressivewebapps/Introduction #What makes an app a PWA?

The simplest thing is to provide a manifest.json. There is a tool to verify your web application for PWA: https://developers.google.com/web/tools/lighthouse/

To build a PWA, some criteria are not related to ZK e.g. serve with HTTPS. Some are related e.g. be responsive. So you can start from the simplest thing and then gradually turn your web apps more like a PWA.

But I think the hardest part is to make a zk-based application available offline. Below is an example, but you need to handle the offline process by yourself. And it only works for <fragment>. https://blog.zkoss.org/2017/07/06/zk-8-5-preview-the-offline-recovery-feature-of-fragment-component/

PWA represents a new philosophy for building web apps. It's not created by a single technology. You can make your web apps more like PWA by matching a set of criteria. Please refer to https://developer.mozilla.org/en-US/docs/Web/Progressivewebapps/Introduction #What makes an app a PWA?

The simplest thing is to provide a manifest.json. There is a tool to verify your web application for PWA: https://developers.google.com/web/tools/lighthouse/

To build a PWA, some criteria are not related to ZK e.g. serve with HTTPS. Some are related e.g. be responsive. So you can start from the simplest thing and then gradually turn your web apps more like a PWA.

But I think the hardest part is to make a zk-based application available offline. Because ZK components will communicate to a server by default when end-users interact with components. Below is an example, but you need to handle the offline process by yourself. And it only works for <fragment>. https://blog.zkoss.org/2017/07/06/zk-8-5-preview-the-offline-recovery-feature-of-fragment-component/

For other criteria, I think ZK doesn't prevent you from implementing them.

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More