4 ms·
This is like saying "how to reduce the load time of your web app - remove all CSS". Technically true, but not useful for most web apps. People can want faster l
by lozenge 3y ago
This is like saying "how to reduce the load time of your web app - remove all CSS". Technically true, but not useful for most web apps. People can want faster loading without removing all styling.
- ipaddr 3y agoIt's more like saying remove react and use pure javascript.
- Kranar 3y agoI don't see how your claim follows or would be true. Replacing CSS with the equivalent JavaScript would most certainly not reduce load times. In fact you should use CSS as a means of reducing load times.
- wtetzner 3y agoThey didn't suggest replacing it with JavaScript.
- Kranar 3y agoThey didn't really suggest anything. Feel free to propose a way of replacing CSS functionality that results in faster load times.
- dgfitz 3y agoI'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.
- Kranar 3y agoThat'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.
- colonwqbang 3y agoI think that's quite unfair. The article contains many different tips on how to reduce size. Rewriting in a different language was just one of them, pretty far down on the list. "Write in C instead of C++" is also clearly not the same as "remove all your code"...