No, @slightlylate means that if you serialize an object with a lot of stuff in it, you'll get a serialized object with a lot of stuff in it.
-
-
So basically a Redux list with hundreds of items in it server-side renders to a crap-ton of html? Please tell me I'm missing something - how is Redux any worse than literally any other SSR solution that creates the same ui / html?
3 replies 0 retweets 1 like -
Because it repeats itself and then some; usually to a multiple of the size of the generated DOM. You're sending a LOT more than what's displayed in most of the sites I've seen.
3 replies 0 retweets 1 like -
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?
2 replies 0 retweets 1 like -
I'm often seeing 2x the inline'd Redux vs. HTML/CSS. It's dramatically bad.
1 reply 0 retweets 1 like -
And what sort of data is this site fetching? Are they querying for lots of rows from a DB and pre-rendering them all on the server, or something like that? I've never dealt with SSR myself, but as Adam said, I'm not sure how this would be different for any other CSR/SSR toolkit
1 reply 0 retweets 3 likes -
Now I'm curious how Vue does SSR. Surely *it* needs a way to send over the serialized state so the client JS can hydrate and start up, right?
2 replies 0 retweets 1 like -
I'm sure all these solutions do something roughly similar. I'm just not seeing as many Vue sites get so heavy that teams resort to SSR as a "silver bullet" in the first place.
4 replies 0 retweets 0 likes -
Oh I'm sure if Vue ever gets as popular / mainstream as React, you'll see all sorts of shitty apps written in it.
1 reply 0 retweets 7 likes -
I think in general when
@slightlylate tweets about React you can substitute it with “client-side rendering”
1 reply 0 retweets 12 likes
Hard to disentangle poor outcomes in client-side-rendering-land from poor outcomes in React-land. Lots of factors, including teams that know what they're doing avoiding heavyweight FWs and React dominating new investment in general.
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.