this post was submitted on 04 Feb 2025
141 points (91.2% liked)

Technology

61456 readers
4603 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related content.
  3. Be excellent to each other!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, to ask if your bot can be added please contact us.
  9. Check for duplicates before posting, duplicates may be removed
  10. Accounts 7 days and younger will have their posts automatically removed.

Approved Bots


founded 2 years ago
MODERATORS
top 31 comments
sorted by: hot top controversial new old
[–] [email protected] 10 points 11 hours ago

And desktop “apps”

Half of them are just fancy electron javascript websites

[–] [email protected] 31 points 18 hours ago (1 children)

I mean, this post makes no valid argument against JavaScript, there’s no benchmarks or anything aside from an opinion.

I don’t personally like webdev and don’t like to code in JavaScript, but there are good and bad web applications out there, just like any software.

A single page can send out hundreds or even thousands of API requests just to load, eating up CPU and RAM.

The author seems to know the real problem, so I don’t know why they’re blaming it on JavaScript.

[–] [email protected] 3 points 14 hours ago* (last edited 11 hours ago) (1 children)

Because only JS is able to do that in a web browser. Everything else is just a dependency tree.

[–] [email protected] 6 points 11 hours ago* (last edited 11 hours ago) (1 children)

That's not necessarily special to JS. It's special to client-side code. A mobile app writing in swift could do this. A cli tool written in any language could do this.

This isn't an argument against JS, it's an argument against misuse of client resources.

[–] [email protected] 1 points 11 hours ago

edited my comment to include the excruciatingly obvious assumption.

[–] 0x0 70 points 22 hours ago (1 children)

Neglects to mention some of the slowness is real-time ad auctions.

[–] [email protected] 41 points 22 hours ago (3 children)

People use the internet without adblockers?

[–] [email protected] 31 points 21 hours ago

I don't use the internet with less than a hazmat suit.

[–] [email protected] 20 points 21 hours ago

Surprisingly, yes. I'm flabbergasted every time someone says, "I'm tired of these ads. I'm going to download an adblocker. Got any recommendations?"

[–] ICastFist 13 points 21 hours ago

Normies do. They vastly outnumber the "barely computer literate"

[–] [email protected] 33 points 23 hours ago (1 children)

Article is correct but kind of low effort. Web slow from too much JS and self serving framework vendors, got it.

[–] [email protected] 8 points 21 hours ago (2 children)

Most of the web now is like that article.

AI has a role in turning pages and pages of text into one sentence.

[–] [email protected] 5 points 20 hours ago (1 children)

It took me 3 hours to think and write that article. Maybe you wouldn't call it AI generated if it was actually AI generated.

[–] [email protected] 6 points 20 hours ago (1 children)

I appreciate you taking time out to write that. I enjoyed reading it, I think what the parent comment was trying to offer as criticism is that it ended sort of abruptly. I was hoping for a couple more paragraphs on either examples of modern sites or platforms that don’t overly rely on js or a way for end users to use these sites loading only the bare minimum js.

I could just google that information but I was enjoying your point of view. Anyway that’s just my 2 cents

[–] [email protected] 1 points 58 minutes ago* (last edited 54 minutes ago)

Thanks! You're right, I should have given some examples like reddit.com is too slow on low end hardware, and how amazon.com loads faster than aliexpress.com for not relying too much on JavaScript. But I thought anyone could 'sense' which website has more javascript, but I was wrong.

[–] [email protected] 5 points 21 hours ago (1 children)

AI has a role in turning pages and pages of text into one sentence.

Right now it's generally used the other way round.

[–] [email protected] 1 points 20 hours ago (1 children)

Much like conservatives think someone who talks a lot with conviction is right.

[–] [email protected] 2 points 17 hours ago* (last edited 16 hours ago)

Only if what they're saying is bigoted or a scam.

[–] [email protected] 14 points 20 hours ago

How current web developers no longer knowing what graceful degradation is ruining the web

[–] [email protected] 8 points 18 hours ago

Oh the author is here. Thank you for the article.

Here are some of my thoughts of some of your points as professional web developer for startups to some of the biggest companies in the world.

Your first point of developers getting dependent on a framework or library doesn't really matter. Look at the average developer's resume with 6 years of experience. They have a lot of things listed because this is what the culture is. We have to learn or miss the opportunity working for a company that uses React rather than Angular.

Besides a professional setting, learning the new hip thing and talking about why it sucks, is programming culture and human nature.

I think this topic can be its own article especially since any contribution to open source even if it from corpos, is not bad to me but moving on.

what I am going to write next is what good web architects do. I am not saying they all do this.

Web architects look at stats of their current users or target users. They have to find a balance of server performance and user experience. Some even have a list of old devices just to test out the results to make a decision on what devices should be excluded.

You showed a video of old tech using the internet now. Some of those devices are less powerful than Raspberry Pis now. Those devices aren't even meant to handle a flat high res image. Also this is rare. Should a company spend thousand of dollars for every unique User Agent they get? No, especially since those are easily spoofed.

You are right about some sites slowing down because of JS but a lot of those, like on your own website which uses a lot of Google code, use code to stream a video in tiny bits. It makes the experience of the user a lot better. It takes a lot of logic to predict how many chunks video a user will use at a given time. I definitely wouldn't wait for a 50 mb video to stutter and load on website.

Other examples like infinite scrolling aka doom scrolling. Social media use lazy loading for images an videos. Try shoving hundreds videos and high res images with sound on a page. It would be horrendous for the user. People would log off. Say what you want about doom scrolling, but it does its job keeping users on the page.

If you want to blame Javascript, you should also blame browsers since they run the code. Firefox is at version 135. Version 1 was less than 9 mb. Version 25 is at 45 mb. Version 50 is at 82 mb. Version 100 is at 121 mb. Version 135 is at 151 mb. You want to look at slow downs, make sure you have enough RAM is run the apps you are using.

I enjoy this topic and would enjoy what you think about what I wrote. Again, than you for posting.

[–] [email protected] 10 points 20 hours ago (3 children)
[–] [email protected] 14 points 20 hours ago (1 children)

Great now nothing works 🫠

[–] [email protected] 1 points 16 hours ago

You're welcome.

Give a hoot! Read a book!

[–] [email protected] 3 points 20 hours ago (1 children)

Has saved my life. I find myself disabling it for an entire tab several times per day to do things like make a purchase or log in, but I'd still rather that than not have it on the rest of the sites.

[–] [email protected] 1 points 16 hours ago

Yeah even if you do that you can at least see the huge list of crazy scripts any given site is running. News sites are just amazing how they throw the kitchen sink at any visitors.

[–] [email protected] 2 points 20 hours ago

I like NoScript but I miss the old XUL version of NoScript. :(

[–] [email protected] 2 points 22 hours ago (2 children)

I found htmx the other day looks like a good fix for most of the js bullshit

[–] [email protected] 14 points 21 hours ago (1 children)

I got bad news for you… htmx is written in JavaScript.

[–] [email protected] 3 points 21 hours ago (1 children)

Yeah but I'd rather 1 piece of js instead of 6000

[–] [email protected] 2 points 21 hours ago

Yeah I was being a little sarcastic. I agree that using a single lightweight framework is ideal.

Runtime js for rendering your page is still bad for performance of course. Best to use static html where possible.

[–] [email protected] 2 points 16 hours ago

It is pretty great. We use it throughout PieFed if you're interested in a working example.