3 ms·
> you don't need to send 100kb+ of JS over the wire to build a static site in react It is telling that the blog of the fw creator ships 500kb of JS/CSS/HTML to
by owebmaster 1y ago
> you don't need to send 100kb+ of JS over the wire to build a static site in react
It is telling that the blog of the fw creator ships 500kb of JS/CSS/HTML to display text on a screen.
> it's really nice to just have one tool that can do everything (static HTML-only, static with JS, SPA, SSR)
WebComponents (+lit-html)
- perilunar 1y agoYep. 411 KB of JS (126 KB minified). 525 KB of fonts! 40KB of HTML. 1.1MB (704 KB minified) total for approximately 4.3 KB of actual text. That's a crap:content ratio of 256:1
- azemetre 1y agoWow this is a great metric to use.
- danabramov 1y agoDisable JS and see that my site loads just fine. Fonts are nice-to-have. Interactive examples (on other pages) are nice-to-have. None of this is render-blocking.
- perilunar 1y agoIt's still half a megabyte with JS turned off. For page of text. With no images.
- danabramov 1y agoPretty much none of that is blocking first paint. Disable JS and see that my site works just fine. I have interactive examples on some pages but all the extra stuff is just “nice-to-have”. Also I’m not a framework creator.