• 0 Posts
  • 17 Comments
Joined 11 months ago
cake
Cake day: August 2nd, 2023

help-circle





  • Quetzalcutlass@lemmy.worldtoProgramming@programming.devJavaScript Bloat in 2024
    link
    fedilink
    English
    arrow-up
    4
    arrow-down
    1
    ·
    edit-2
    3 months ago

    How big is 10 MB anyway?

    To be honest, after typing all these numbers, 10 MB doesn’t even feel that big or special. Seems like shipping 10 MB of code is normal now.

    If we assume that the average code line is about 65 characters, that would mean we are shipping ~150,000 lines of code. With every website! Sometimes just to show static content!

    And that code is minified already. So it’s more like 300K+ LoC just for one website.

    An important takeaway, as I feel byte size can be hard for people to intuitively visualize. And for those who didn’t read the article, many of the sites tested sent significantly more than 10 megs of JS, even sites containing nothing more than simple input boxes that should be doing any processing server-side.

    I want to see the difference with ad-block enabled. Analytics and tracking are certainly complex enough to account for a lot of that payload. Same with an addon like Decentraleyes to see how much is bloated frameworks that could easily be cached locally.






  • I think that was just a matter of fortunate timing. The other Reddit migrations were due to toxic subs being banned, so the worst parts of Reddit migrated to whatever platforms were being discussed at the time, which happened to be mainly Voat.

    The July 1st exodus was due to the Reddit API being paywalled at extortionate rates to crush third-party apps, which affected normal users - particularly long-time contributors and the tech-savvy. Lemmy discussion was picking up steam at the time, so that’s where a lot of these users went.

    If the timings were reversed and Lemmy got the worst users Reddit had to offer Lemmy probably would have handled it much better than Voat did (especially since the devs would loathe the new users), but I’d imagine a split forming between instances, with right-wing instances being defederated and creating their own bubbles of toxicity.