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.
-
Show this thread
-
Replying to @slightlylate
Wild. I'd like to point out that many apps wouldn't do SSR at all if it was significantly more complicated than what Redux offered. And that if you don't care about performance and do basic profiling, you can run any tool into the ground. But it's fair criticism of the model.
2 replies 0 retweets 6 likes -
Replying to @dan_abramov
Teams aren't getting warnings from their tools that these outcome are bad. These apps are -- to your eyes and mine -- prototypes that escaped the lab. And nobody is telling them they aren't production-quality.
2 replies 0 retweets 3 likes -
Replying to @slightlylate @dan_abramov
As some of us toolings have learned the hard way: many people don't care or won't prioritize it until later. So either they go for the opt-out on annoying messages or ignoring the warning signs.
1 reply 0 retweets 2 likes -
Replying to @TheLarkInn @dan_abramov
Just not sending <script> tags would solve most of hits.
1 reply 0 retweets 0 likes -
Replying to @slightlylate @dan_abramov
Well that would rely on people not caring about their tooling and technical decisions. Whether we believe its good or not, using a cozy FW > Deciding if you even need JS. (Which sure many don't).
1 reply 0 retweets 0 likes -
I for one love writing JavaScript, and love that I can be modular, compositional, and have a rich ecosystem of solutions, tools, and DX at my fingertips. Not shipping <script> robs me of that. (Again whether I agree with that or not is another story).
2 replies 1 retweet 3 likes
I'm just saying you can afford tons of script on the server where bandwidth, compute, and latency fall within a narrow (known) band. You can afford much less on the client. So having all that JS is fine...on the server.
-
-
Replying to @slightlylate @dan_abramov
Understood. Even though I hate saying it, a lot of developers find even this unacceptable, for the same reasons. :/
0 replies 0 retweets 0 likesThanks. 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.