PSA: if you add a Service Worker to your app *but do not use it to handle top-level requests*, things *will* be slower.
-
-
Replying to @slightlylate
isn't https://groups.google.com/a/chromium.org/forum/#!topic/Blink-dev/PI3FG54L1ZU … supposed to solve that and enable SW on subresources without a penalty?
1 reply 0 retweets 0 likes -
Replying to @yoavweiss
: it's complicated. For many sites, yes, this will drop SW startup out of their traces entirely...still slower than offline-first
1 reply 0 retweets 1 like -
Replying to @slightlylate
: Navigation Preload is meant to work *with* the offline-first architecture; shell comes from cache, fresh data from network
1 reply 0 retweets 0 likes -
Replying to @slightlylate
: app shell (particularly using Streams) + Navigation Preload will usually beat all other architectures.
1 reply 0 retweets 0 likes -
Replying to @slightlylate
: ...but if you put network variability and latency between the renderer and your initial chunk of HTML...¯\_(ツ)_/¯
1 reply 0 retweets 0 likes -
Replying to @slightlylate
sure. question is, if I'm optimizing existing app resources with SW, will SW+navpreload be worse than nothing in some metrics?
1 reply 0 retweets 2 likes -
Replying to @yoavweiss
: probably not, but that'll be machine dependent. But "optimizing" how, tho? If you respond for top-level request from cache, win.
1 reply 0 retweets 0 likes -
Replying to @slightlylate
A win, but a potentially stale one (as HTML tends to be dynamic)
2 replies 0 retweets 0 likes -
Replying to @yoavweiss @slightlylate
starting with resource cache/opt and not regress in worst case (where you did nothing) seems like an easy first step
2 replies 0 retweets 0 likes
: this is still Doing It Wrong (TM). Not taking the opportunity to radically improve your perf is a mistake.
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.