instead of relying on the cache first?
-
-
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 -
Replying to @slightlylate
Thanks for this, and agreed this makes more sense!
2 replies 0 retweets 1 like -
Replying to @hdjirdeh
: also, would love to see the app and trace it! Always looking for great examples of Angular PWAs. /cc
@robwormald2 replies 0 retweets 1 like -
Replying to @slightlylate @robwormald
of course!https://angular2-hn.firebaseapp.com
1 reply 0 retweets 1 like -
Replying to @hdjirdeh
: thank you! Are you looking for feedback on the app? Happy to trace/analyze if you like.
2 replies 0 retweets 2 likes -
Replying to @slightlylate @robwormald
Appreciate you taking the time to analyze it, genuinely can't thank you enough
1 reply 0 retweets 0 likes
: so here's a WPT run on the site using an Emerging Markets connection (slow 3g) on a Moto G4: https://www.webpagetest.org/result/170215_QH_MN7N/ …
-
-
Replying to @slightlylate @hdjirdeh
: a few things jump out: 1.) the data is fetched very late. Can fetch be started earlier? 2.) ~150K of script gzipped
2 replies 0 retweets 1 like -
Replying to @slightlylate @hdjirdeh
: probably worth investigating how you can split up and slim down the scripts. Also, <link rel="preload"> them.
4 replies 0 retweets 2 likes - 1 more reply
New conversation -
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.