this post was submitted on 26 Jan 2023
11 points (100.0% liked)

General Programming Discussion

7816 readers
2 users here now

A general programming discussion community.

Rules:

  1. Be civil.
  2. Please start discussions that spark conversation

Other communities

Systems

Functional Programming

Also related

founded 5 years ago
MODERATORS
 

Sourcehut has No JavaScript as one of it's selling points, so i was wondering why it would be better that way?

you are viewing a single comment's thread
view the rest of the comments
[–] rysiek@szmer.info 9 points 2 years ago (9 children)

It loads immediately (just flat HTML/CSS/image/font files), it does not slow down user experience in the browser, it also signals very clearly there are not weird third-party JS scripts slurping the data for whatever godawful reason.

Additionally, one can build pretty nice, responsive, fast UIs with just HTML and CSS, and browser developers spent decades optimizing their rendering engines for that. JavaScript components on the front-end tend to be buggy, slow, and just all-around shitty UI/UX.

[–] Berserkware@lemmy.ml 4 points 2 years ago (3 children)

Thanks. I think I will remove the JavaScript from the website I am working on right now. I don't really like JavaScript anyway.

[–] rysiek@szmer.info 6 points 2 years ago (1 children)

It has its place, but if it can be avoided, I believe it should. Basically, if something can be implemented using just HTML/CSS, it's probably better to do it that way.

Fun fact, I have a large JS-based project, because what the project aims to do is impossible without JS. But the website itself is almost completely JS-free, apart from the demos (which necessarily need to use the JS-based project itself).

[–] Berserkware@lemmy.ml 4 points 2 years ago (1 children)

Awesome. I have found a way to work my project without JavaScript, and it actually makes the back-end a lot cleaner.

load more comments (1 replies)
load more comments (6 replies)