This feels like the right place to invoke @tomskitomski:
https://twitter.com/tomskitomski/status/1241009376653012993 …
If I had to guess, this probably wasn't ever tested on anything w/o a "Designed in Cupertino" badge.
-
Show this thread
-
It's *more than 900K of JS* to see the headline data. A screen shot is significantly smaller. Nothing about this is OK.
2 replies 8 retweets 82 likesShow this thread -
Once -- just once -- I'd like to see prominent React peeps pitching in to fix these sorts of disasters instead of just excusing them.
9 replies 6 retweets 55 likesShow this thread -
Replying to @slightlylate
I seem to remember the Gatsby community building a no-JS plugin. Does that count?
1 reply 0 retweets 0 likes -
-
Replying to @slightlylate
My ideal is to have a NextJS config that lets me ship full React to desktop, and a simple site to mobile with a tiny amount of JS (<50kb all in) with one app. Let’s me reuse server side logic but have a tiny mobile site that just toggles stuff with JS
3 replies 0 retweets 3 likes -
Replying to @chofter @slightlylate
Have you considered AMP for that simple mobile site version? React Storefront framework is based on based on NextJS and outputs a PWA and AMP version for each page. It could be tweaked to do what you describe.
1 reply 0 retweets 0 likes -
Replying to @ianand @slightlylate
Interesting. I still need a little JS on the page as it’s not a simple consumption site. I don’t think AMP can do this (populate a <select> options based on a user selection for example) but happy to be wrong about that
2 replies 0 retweets 0 likes -
Replying to @chofter @slightlylate
yes AMP can do that. example at bottom of https://amp.dev/documentation/examples/interactivity-dynamic-content/linked_dropdowns/ … . a more complex example from RSF is this product page that changes the images based on the color selection and it's an AMP page …https://react-storefront-boilerplate.moovweb.cloud/p/1.amp?c=1&s=1
1 reply 0 retweets 1 like -
Replying to @ianand @slightlylate
Thanks for the link. Reading it, I can’t see myself using it, the dev experience feels like going back 10 years. A React based SSR with no-JS on client, then a simple XHR + replace <options> in a couple of KB leaves 98% code clean with similar perf I think
3 replies 0 retweets 1 like
+1. The DOM got nicer too!
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.