The hero transition is the one I keep bringing up as the lithmus test (see https://pwp.dassur.ma/ ). We have ideas for a postMessage()-based solution, but I honestly think there’s a better DX to be found.
-
-
Replying to @DasSurma @slightlylate and
Portals are interesting but I don't want to document swap, lots of expensive data structures are attached to a document. Also rebuilding the whole app state (CE, Workers, fetching data etc.) on each view transition is very costly.
1 reply 0 retweets 2 likes -
This is a trade-off between performance (SPA) and robustness (starting from scratch on each view transition). For many apps the latter is a good trade-off but certainly not for all. Right now the high-performance but sophisticated option is the only option.
2 replies 0 retweets 2 likes -
Replying to @cramforce @DasSurma and
Perf. concern aside I don't understand how I'm supposed to use this API. How do I make the Google News UX where there's tabs at the bottom. Tapping each one should play a puddle effect while loading the new tab to hide latency, the URL should change right away. Got code examples?
2 replies 0 retweets 1 like -
Replying to @ElliottZ @cramforce and
I hate to be pedantic, but the Material touch effect is called a "ripple." Folks might have an easier time following if you call it that.
2 replies 0 retweets 1 like -
Replying to @appsforartists @cramforce and
Haha sorry, thanks for calling me out!! Anyway I don't see how to leverage the latency hiding superpower of the ripple (or any touch effect, liquid based, adorable duck containing


, etc.) with portals.1 reply 0 retweets 2 likes -
Replying to @ElliottZ @cramforce and
What is this portal you speak of? A quick search on both Google and Github turns up nothing useful.
1 reply 0 retweets 0 likes -
Replying to @appsforartists @ElliottZ and1 reply 0 retweets 1 like
-
Replying to @cramforce @ElliottZ and
Interesting. So to Elliott's point, you'd either have to wait until the ripple completed to portal.activate(), or the portal would have to know about the nav bar, adopt it, and continue the animation without dropping frames?
1 reply 0 retweets 0 likes -
Replying to @appsforartists @cramforce and
Waiting until the animation is done to call activate has been my assumption. Adopting the predecessor is more about allowing maintaining a presence in the now active portal. We'll have to play with it, experimental proto in Chrome: soon(tm), crossing fingers.
1 reply 0 retweets 1 like
I was (and remain in) Elliott's camp: if we couldn't afford 2 documents before, why can we now?
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.