this post was submitted on 04 Jul 2021
36 points (95.0% liked)

Lemmy

12715 readers
68 users here now

Everything about Lemmy; bugs, gripes, praises, and advocacy.

For discussion about the lemmy.ml instance, go to [email protected].

founded 4 years ago
MODERATORS
 

Lemmy should rely less on JavaScript.
Currently without JS you can't even expand the main menu.

Additionally, all those controls should also work without JS.
Or worse option - since they only work with JS, don't show them when JS is disabled.

top 16 comments
sorted by: hot top controversial new old
[–] [email protected] 14 points 3 years ago (1 children)

UI and backend are separate so a UI can be created which doesn't use JS.

There are only two devs working on the project and the backend takes most of their time. Using JS in the UI expedites the process of implementing features which may be why they went for it.

[–] [email protected] 7 points 3 years ago* (last edited 3 years ago) (2 children)

The user experience on javascript-enabled browsers is also really great. Going for a nojs-first approach would hurt UX a lot, especially on mobile.

[–] [email protected] 4 points 3 years ago (2 children)

Mobile has dedicated app which make this issue mostly moot.

[–] [email protected] 2 points 3 years ago (1 children)

No, because app shouldn't be required. It should be simple website with RWD, nothing special.

[–] [email protected] 2 points 3 years ago

I agree. And the app uses flutter which isn't good in lower end devices (such as my Redmi 4X), so it's not ideal.

[–] [email protected] 1 points 3 years ago

I don't want to install an app to get the same experience as the website but without tabs.

[–] [email protected] 0 points 3 years ago (1 children)

"Going for a nojs-first approach would hurt UX a lot, especially on mobile."

WTF?!

[–] [email protected] 1 points 3 years ago (2 children)

It would. If used properly, JS can have really improve UI/UX. Sure, you can make good JS-free pages, but JS can make it easier and arguably better (by being more dynamic, which appeals to a wider audience than static pages).

[–] [email protected] 2 points 3 years ago
  1. No, it would not.

  2. Progressive Enhancement

[–] [email protected] 1 points 3 years ago* (last edited 3 years ago)

Not having that into account makes it harder when you want to replace it without JS and doing more requests to the server side.

It is preferable that if you use JS in the begining to make it easier, take into account that possibility.

Maybe, as a WebDev student I didn't finish yet and can learn more into the basics, but the things I learned doing a replacement to Disqus in JSP without JS, later compared with the project this year with similar requirements but adding JS in the client side, got me into this.

[–] [email protected] 11 points 3 years ago (2 children)

If you want to revive Lemmy Lite, that would be great. We would like to ship something like that with Lemmy by default.

[–] [email protected] 4 points 3 years ago

That would be awesome for us, symbian users

[–] [email protected] 2 points 3 years ago (1 children)
[–] [email protected] 4 points 3 years ago

It would be really easy, just create a Docker image, install it with docker-compose along with the other services, then expose it under lemmy.ml/lite or similar. But I know that maintaining such a frontend would be some serious work. We simply dont have the capacity for that, Lemmy alone is a lot of work.

[–] [email protected] 11 points 3 years ago

My preference would be to go entirely optional on JS like how Hacker News does it. A site aimed at a privacy focused crowd would benefit from the option.

[–] [email protected] 9 points 3 years ago

Even better, js should be entirely optional.