this post was submitted on 10 Sep 2023
471 points (97.8% liked)
Asklemmy
43940 readers
824 users here now
A loosely moderated place to ask open-ended questions
Search asklemmy ๐
If your post meets the following criteria, it's welcome here!
- Open-ended question
- Not offensive: at this point, we do not have the bandwidth to moderate overtly political discussions. Assume best intent and be excellent to each other.
- Not regarding using or support for Lemmy: context, see the list of support communities and tools for finding communities below
- Not ad nauseam inducing: please make sure it is a question that would be new to most members
- An actual topic of discussion
Looking for support?
Looking for a community?
- Lemmyverse: community search
- sub.rehab: maps old subreddits to fediverse options, marks official as such
- !lemmy411@lemmy.ca: a community for finding communities
~Icon~ ~by~ ~@Double_A@discuss.tchncs.de~
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
That lot of websites these days loads tons of JS, even when they should just be multi-page static websites.
Edit: I have recently compared my website (built with astro), and it weights 15 times less than other similar sites. And when you check why, it turns out that they are loading jQuery, React, unoptimized images and stuff like that, for simple website, that don't even use any interactive stuff, except menus.
It's everywhere, and for no good reason. I've yet to find a Lemmy instance that will work without JavaScript enabled.
There is a good reason for it, and that's saving money. Computation on the user's device is free, doing it on the server/cloud costs money.
Serving static files that's cached in the browser, and providing a thin API layer is cheaper to host and might be worth it on the long run.
I'd support a JS free front end. Thankfully it wouldn't even be hard to do, and you could even use a desktop client so you don't even need anything but the API
Mlmym is server rendered I think
I feel like we should try and move some of the most commonly used stuff into the browser engine so we don't have to run random code