943
you are viewing a single comment's thread
view the rest of the comments
[-] lvxferre@lemmy.ml 13 points 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.

[-] ICastFist@programming.dev 6 points 1 year ago

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

Hello, non minified bootstrap reporting

[-] jvisick@programming.dev 1 points 1 year ago* (last edited 1 year ago)

I would absolutely consider shipping non-minified bootstrap doing something wrong

[-] alokir@lemmy.world 1 points 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.

this post was submitted on 28 Jul 2023
943 points (96.2% liked)

Programmer Humor

19572 readers
978 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS