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.
-
-
Ah ok—I'm tracking now. *Of course* Redux needs the `window.__PRELOADED_STATE__` - my bad for not thinking of that. Alex - roughly what was the ratio of the html to the preloaded object? I can't imagine the serialized js object was more than a fourth the size of the full html?
-
I'm often seeing 2x the inline'd Redux vs. HTML/CSS. It's dramatically bad.
- 6 more replies
New conversation -
-
-
Agree. A slight nuance tho. The *purpose* of this data is to display the next state of any possible interaction you can do. If it was just what is immediately visible, there would be no point in sending it down. It just models way too many states and doesn’t do it progressively.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
I think
@AdamRackis might be missing that Redux apps need data so that we can hydrate the initial render on the client — so with HTML goes a serialized state object (which can be excessively large) - 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.