Re:How to make smaller C and C++ binaries
by Kranar on Sunday May 07, 2023 @04:38PM
(#35855416)
I don't see how your claim follows or would be true. Replacing CSS with the equivalent JavaScript would most certainly not reduce load times. You should use CSS precisely as a means of reducing load times.
[ Parent
| on HN ]
They didn't suggest replacing it with JavaScript.
They didn't really suggest anything. Feel free to propose a way of replacing CSS functionality that results in faster load times.
I'd say the obvious answer in this case would be: replace it with nothing. The web would be a touch uglier, but it sure would be faster.
That's a different discussion and frankly not something for developers to decide. If a product is designed to behave and look a certain way, then as an engineer you have the job of determining the best way to accomplish that objective. If your decision is to forgo using CSS for an alternative, fine but no one has provided what that alternative is.
I'd much rather use CSS instead of Javascript or going back to the days of hacking <table> to get a certain layout.