简体   繁体   中英

When need to develop Progressive Web App (PWA)?

I'm developing an Angular 7 app for windows users, and I want to know:

  • Does PWA always improve performance?
  • Does it target only specific platforms?

Here is the answer to both of your questions regarding Progressive Web Applications (PWA):

1) Does it always improve performance?

Yes, and it is all thanks to the usage of Service Workers . Do note that to enjoy the benefits of PWAs and service workers, it must be served via HTTPS.

As stated on the introduction page to PWAs ,

A service worker, written in JavaScript, is like a client-side proxy and puts you in control of the cache and how to respond to resource requests. By pre-caching key resources you can eliminate the dependence on the network, ensuring an instant and reliable experience for your users.

2) Is it only used for specific platforms?

PWAs are available on all platforms - Browsers, Mobile devices, and even desktops . However, do take note that certain PWA features may not be universally supported across browsers/operating systems.

There are different caching strategies you can apply to static assets and also API Responses.

This brings you not only the possibility to deliver content even when your users are offline, but also to improve overall performances as you are going to save some Network Requests by providing cached Responses.

If you are interested in learning more about PWAs, I wrote some articles about them:

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM