Remix.run Logo
grishka 3 hours ago

Running code by itself isn't that bad, it's the fact that browser developers have decided for some reason that this code needs to be as performant as possible, so, JIT.

I don't get it! The way JS is typically used, it doesn't even benefit from JIT all that much. Making ajax requests, doing stuff with strings, and moving DOM elements around doesn't need every CPU clock cycle to be used as optimally as possible. It's exceedingly rare for websites to actually be doing something that needs raw performance. And SPAs will be slow no matter what.

varenc 2 hours ago | parent | next [-]

I disagree about JIT performance not mattering. I enabled "Lockdown Mode" on iOS which disables the JIT for the mentioned security reasons, and it causes a very noticeable lagginess on many sites. Of course, the primary cause is the unnecessary JS monstrosities wasting CPU cycles. But practically speaking I can say that disabling the JIT results in a very subpar experience of many JS heavy pages.

Rohansi an hour ago | parent [-]

It will also increase power consumption because your CPU has to do more work to run the same code.

cute_boi 3 hours ago | parent | prev | next [-]

Agree. Chrome should just disable JIT by default and boom many website owner will start to optimize their website.

andrekandre 2 hours ago | parent [-]

jira and confluence come to mind...

macintux 2 hours ago | parent | next [-]

I suspect the people who agree to buy Jira & Confluence are not particularly heavy users of them. At least, that's the only explanation I can fathom for their continued sales.

DANmode 2 hours ago | parent | prev [-]

Is it their app’s features that are slow, or the analytics bolted on top?

shakna 41 minutes ago | parent [-]

Both. And all the dependencies of both are slow. And the dependencies of those are slow, too.

DANmode 2 hours ago | parent | prev [-]

> SPAs will be slow no matter what.

Uh…no?

You’re presumably talking about specific terrible prebuilt frameworks - not someone building a nice vanilla SPA.

grishka an hour ago | parent [-]

At this point SPA pretty much implies React. But even if you optimize everything the best you could and avoid any third-party runtime dependencies, it's still going to be significantly more work to make API requests and do client-side rendering vs just rendering HTML server-side.