420
submitted 1 month ago* (last edited 1 month ago) by Pro@programming.dev to c/programmer_humor@programming.dev
you are viewing a single comment's thread
view the rest of the comments
[-] Blackmist@feddit.uk 24 points 1 month ago

Which CSS framework is it that puts this shit everywhere?

That one can die in a fire.

[-] ThunderComplex@lemmy.today 19 points 1 month ago

fun fact: This isn’t any one specific CSS framework's doing but rather part of how JS UI libraries handle scoped CSS. When you have for example two components that have similar CSS, like one component sets button to color green, another component sets button to blue, then the compiler does this kinda thing because "real" CSS doesn’t support scoping.

So in the above example you'd get button class abcd and button class bcde.

[-] FooBarrington@lemmy.world 2 points 1 month ago* (last edited 1 month ago)

How *some JS UI libraries handle scoped CSS. Vue for example uses data- attributes instead.

[-] expr@programming.dev 8 points 1 month ago

I'm honestly not sure, but I'm fairly certain it's intentional obfuscation done for the production build. Why they think it's so important to hide class names, I'll never know.

[-] kautau@lemmy.world 6 points 1 month ago

To fight ad blockers

this post was submitted on 30 Jun 2025
420 points (100.0% liked)

Programmer Humor

25471 readers
1726 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 2 years ago
MODERATORS