Btw, if you want to test your site's performance to see if shedding JS dependencies with techniques like the above will help your load time, this tool may be helpful: builder.io/c/performance-…
Loving how this perf tool we're making is coming along
Most tools show what *could* improve, but poorly quantify what will make a real difference
Spoiler alert: excessive JS is more of an issue than you think
More examples and how it works in 🧵:
How does it work? We ingest the page, modify the code, and then run the new page through @____lighthouse to test the impact of each possible optimization
We are seeing the same clear patterns among sites large and small: loading up your site with JS is crushing your performance
So what do you do about it? You need to free yourself from this heavy JS dependency
I've been digging into React Server Components via @ShopifyDevs Hydrogen, and I'm very impressed & excited
Here is a visual explanation of my understanding of RSC and what it means for you 🧵:
First, how do you author server components?
In short, they are just React components! With all the latest goodies of concurrent mode, such as elegantly fetching data via hooks
Server components can even fetch private data and are denoted by a file ending in *.server.js
Next, how do you load these components?
For Hydrogen, the top level is always a server component.
But, with some caveats, you can mix server components, client (aka traditional) components, and shared components (components that can render on server OR client), in one tree
Innovation in web performance has been 🔥 lately. Here are the projects you need to watch in 2022: 🧵
for extreme rendering performance, @solid_js is the obvious winner. you cannot beat their combination of crushing benchmarks + having an amazing DX and community
for having a huge community and adoption, @react + @nextjs is still the no brainer. the support, ecosystem, and talent in this community is unbeatable