News for hackers. Stuff that matters.
Re:The GitHub website is slow on Safari by mrbombastic on Wednesday August 27, 2025 @12:07PM (#45041536)
M4 macbook pro and almost unusably slow
Re:The GitHub website is slow on Safari by lowwave on Wednesday August 27, 2025 @03:04PM (#45043661)
Ah the wonders of SPA! I know there are lighter ones, but it is not the first time hearing things like React being slow. Of course, when one start to do sntax highlighting on the client side....
Re:The GitHub website is slow on Safari by humpty-d on Wednesday August 27, 2025 @04:24PM (#45044718)
Various comments and links throughout the discussion of this post indicate that the problem is a mix of the sheer number of nodes and css. It has nothing to do with React or being a React SPA, which it's also not, unless you have some proof otherwise.
Re:The GitHub website is slow on Safari by bythreads on Thursday August 28, 2025 @01:42AM (#45048806)
React and the most commonly used pattern inherently promotes an way to complex html Node structure and shitty css, especially if stuff like tailwind is used.

Now you CAN so it so that is not the case, but tbh i have never seen that in the wild -

Re:The GitHub website is slow on Safari by troupo on Thursday August 28, 2025 @03:07AM (#45049318)
Lol. If anything, Tailwind isn't shitty CSS (because it's a very limited number of classes) unlike the gazillion one-off classes that CSS-in-JS or even BEM encourages

Edit: here's a good investigation on a real-enough app https://www.developerway.com/posts/tailwind-vs-linaria-perfo...

Re:The GitHub website is slow on Safari by typpilol on Thursday August 28, 2025 @03:27AM (#45049443)
Yes what's with his comment?

Tailwind is probably one of the best considering you can use Vite to literally strip out all unused css easily.

And I think tailwind v4 does this automatically

Re:The GitHub website is slow on Safari by Tadpole9181 on Wednesday August 27, 2025 @04:27PM (#45044747)
> When native software is slow, it's bad software. When web software is slow, react is bad software.

This is such a tired trope.

Re:The GitHub website is slow on Safari by const_cast on Wednesday August 27, 2025 @10:02PM (#45047513)
Its not really a trope, the opposite is much more common. People are much more quick to mindlessly blame SSR for slowness like with ROR or PHP.

The reality is both can be slow, it depends on your data access patterns, network usage, and architecture.

But the other reality is that SPAs and REST APIs just usually have less optimal network usage and much worse data access patterns than traditional DB connected SSR monoliths. Same goes for micro service.

Like, you could design a highly scalable and optimal SPA. Who's doing it? Almost nobody.

No, instead they're making basically one endpoint per DB table, recreating SQL queries in client side memory, duplicating complex business logic on the front and back end, and sending 50 requests to load an dashboard.

Re:The GitHub website is slow on Safari by whstl on Thursday August 28, 2025 @03:29AM (#45049456)
React also has a class of problems that doesn't really happen in other types of apps: re-renders.

Even other frameworks like Vue.js, Solid or Svelte don't really suffer from it as much. It simply happens a couple order of magnitudes more often in React than any other framework.