• 𝕽𝖚𝖆𝖎𝖉𝖍𝖗𝖎𝖌𝖍@midwest.social
    link
    fedilink
    arrow-up
    9
    arrow-down
    16
    ·
    1 year ago

    It’s the easiest way to bloat up a web page, and turn 1kb of text into 5mb of download.

    People whine about cryrocurrency wasting energy; it’s nothing compared to the petajoules wasted on bloated web pages, full of unneccessary Javascript and CSS.

    • Lvxferre@lemmy.ml
      link
      fedilink
      arrow-up
      7
      ·
      1 year ago

      To be fair most of that bloat comes from the Javascript; if your CSS stylesheet is above, say, 100Kb, odds are that you’re doing something wrong.

      The major damage that I see is on another level: raising the bar for what you’re expected to know, just to make a site and publish some stuff. It’s the wrong way to go - the development of new tech should enable more people to do more stuff, not the opposite.

      • I Cast Fist@programming.dev
        link
        fedilink
        arrow-up
        5
        ·
        1 year ago

        CSS stylesheet is above, say, 100Kb, odds are that you’re doing something wrong.

        Hello, non minified bootstrap reporting

      • alokir@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        Configuring your bundler properly has to be done once per app, and it can significantly cut down on your app’s size.

        People expect to see apps, not web pages, but we can be smart about it. Tree shaking has been around for years now, if you build your app properly your bundle will only include the pieces of code that actually gets referenced, e.g. if you pull in a 2 megabytes large library but only use it for one function, only those few lines from the lib will end up in your bundle.