4 ms·
Angular 2 typescript apps can use AOT compilation, so that could be added if it's not there already, but regardless of that isn't one huge benefit of a PWA that
by onion2k 10y ago
Angular 2 typescript apps can use AOT compilation, so that could be added if it's not there already, but regardless of that isn't one huge benefit of a PWA that the code is cached so it can be used offline, and a service worker is used to control what needs to be downloaded on subsequent loads? That means that, while it's good not to be wasteful, the initial download size isn't really that important. Adding a one-time download few hundred KB of code isn't going to make a big difference to the user.
- hazza1 10y agoThe files still have to be parsed even if they are cached, PWAs are aimed at mobile users so this can be particularly important. If you want an native like feel your initial processing should be as light as possible.