Re:“Clean” Code, Horrible Performance
by onion2k on Tuesday February 28, 2023 @04:51PM
(#34975371)
For what it's worth, less than 4% of websites use React (approximately 4% use any JS framework) . If you believe the web is slow because of React you are wrong. It's not even due to JS.
[ Parent
| on HN ]
4% of what? I would wager a guess that close to 100% of Alexa top 1000 websites us a JS framework and a significant portion of that something heavy like React or Angular.
Re:“Clean” Code, Horrible Performance
by gratitoad on Tuesday February 28, 2023 @04:59PM
(#34975525)
I’m curious, where do you get those numbers from? Those are shockingly low numbers and don’t align with my observations, but I also don’t have hard figures to back them up.
>It's not even due to JS.
Oh it definitely is. But no single framework (or frameworks) are to blame. It's the CMS. The thing that allows every Tom, Dick, and Harry at the company to drop their little snippet for this or that which adds up to a mountain of garbage over time, half of which is disused or forgotten.
Is that weighted for the traffic those web sites receive?
It could be that most of the traffic is served by websites using heavyweight frameworks, but the long tail of low traffic websites use them rarely.
Re:“Clean” Code, Horrible Performance
by wellanyway on Thursday March 02, 2023 @04:49AM
(#34993900)
> It's not even due to JS.
Do enlighten us then, what is it due to?