this post was submitted on 16 Feb 2026
19 points (91.3% liked)
JavaScript
2667 readers
6 users here now
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
That's not the case on a lot of JS-heavy sites, though. A lot of logic runs on the main thread, which slows things down. The only way to run things off the main thread is by using web workers, but that adds extra serialization/deserialization overhead.
Generally, the more logic you have on the client-side, the more likely you are to have security issues. The client is a completely untrusted environment (since they can do whatever they want with your JS code), and increasing the amount of logic on the client side increases your attack surface there.