We need to talk about Redux and "SSR". Just saw second (large, commercial) site sending > 100/500K (zipped/unzipped) of HTML payload *this week*. When it takes 3-5x the size of a PNG screenshot of your AFT content to "inline" your "critical" HTML/JS/CSS, something's broken.
-
-
Though I find the point valid, the proxy thing naively seems overcomplicated to me. Also, one might argue that, following your thoughts, in most cases, we’re actually *tripling* the payload because most of this is initial state, which is also in the JS bundle.
-
Isn’t the Redux state supposed to be the single source of truth though ? I mean, isn’t it the whole point to stop inferring state from the DOM?
- 3 more replies
New conversation -
-
-
Do you know any such proxy that can be used to purge unnecessary Redux tree automatically? Does it require any patterns of use with Redux? I’m worried that it is heavily tied into how the rest of the app is constructed to build upon initial state.
-
I haven't prototyped this but basically you'd need to be able to handle accesses for faults in an async way; ala:https://github.com/reduxjs/redux/tree/master/examples/async …
End of conversation
New conversation -
-
-
That's a good point. Easy to do. But then your application should be ready to "not find" some data it would expect to have. And making all the places ready for this "sharded" behaviour - that's a hard task.
Thanks. 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.