I've seen many teams full of smart people do exactly this and then go "why is it slower?". Uh...'cause you put another proxy in the middle.
-
-
Replying to @slightlylate
Cannot stress this enough: Service Workers are designed to enable the offline-first architecture -- which is faster! Do not help otherwise.
4 replies 7 retweets 17 likes -
Replying to @slightlylate
offline is just one of the cases sw enables. If that is the only use case why develop something as versatile as sw?
1 reply 0 retweets 0 likes -
Replying to @everConfusedGuy @slightlylate
giving developers the power to do so much more and saying sorry sw is not designed for that is just shifting the blame.
1 reply 0 retweets 1 like -
Replying to @everConfusedGuy
: this isn't blame-shifting, it's physics. Process & thread creation take time. SWs are *intentionally* not magic
2 replies 0 retweets 0 likes -
Replying to @slightlylate
: SWs enable many things, but all things are a trade-off. Making adding a SW to a site with it is hard if not offline-first
1 reply 0 retweets 0 likes -
Replying to @slightlylate
: and by "offline-first", I mean "don't wait on the network response to get your HTML document running"
1 reply 0 retweets 1 like -
Replying to @slightlylate
would be cool to say to SW - make the top level request directly to network / give me just JS fetch. best of both worlds
1 reply 0 retweets 0 likes -
Replying to @everConfusedGuy
: I have no idea what benefit that would provide. You'd still have slow, uneven experience as a user
1 reply 0 retweets 0 likes -
Replying to @slightlylate
Again, I am not talking about offline case. Wondering about stuff like this - http://calendar.perfplanet.com/2016/enabling-brotli-even-on-cdns-that-dont-support-it-yet/ …
1 reply 0 retweets 1 like
: sure, and you can do that already, but you pay constant SW start-up cost...A and w/ handling document, hard to win race
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.