I just published: Progressive Web Apps with Angular 2+https://houssein.me/progressive-angular-applications …
-
-
Replying to @hdjirdeh
: loved this article; one nit: network-first isn't a great PWA pattern. Have you considered offline-first?
3 replies 0 retweets 0 likes -
-
Replying to @hdjirdeh
: you want the "shell" of the app to load from the cache no matter what so that you get reliable performance
1 reply 0 retweets 1 like -
Replying to @slightlylate
: once the shell (and previous data) load, getting new data is a great idea. The goal is to replicate what native apps do here
3 replies 0 retweets 1 like -
Replying to @slightlylate
however you make a good point in that I could load the previous data first then attempt to fetch content from the network
1 reply 0 retweets 0 likes -
Replying to @hdjirdeh
: right. That's pretty much what every good native app does. Also UI to say "getting updated data..."
2 replies 0 retweets 1 like
: the most important point, however, is to make sure all the app shell resources are served offline-first. Never wait for them
-
-
Replying to @slightlylate
yep you're right the App Shell should always be retrieved from the cache, regardless of whether the user is offline or online
0 replies 0 retweets 1 likeThanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
& Web Standards TL; Blink API OWNER
Named PWAs w/
DMs open. Tweets my own; press@google.com for official comms.