43 ms·
> Nevermind that the HTML is now a mess where you've got more CSS classes than content! It shocks me how bad most HTML is. I just had a look at Twitter, and a
by perilunar 1y ago
> Nevermind that the HTML is now a mess where you've got more CSS classes than content!
It shocks me how bad most HTML is. I just had a look at Twitter, and a single post in my timeline (a paragraph of text, an image, and ~10 linked icons) was 254 lines and 21.8 kB for just the HTML, and had 104 nested divs and 860+ classes!
That's more classes than characters of text content. About 9 kB of class names alone. And that is then repeated for every post in the timeline.
It should be a few divs max, a couple of classes (+ one for each icon), and a few lines of CSS. Seriously. You could style every post in the timeline with fewer characters than in the class names on one single post.
I don't understand how professional developers can make something so obscenely bloated.