3 ms·
Whenever I can, I try to use CSS instead of js. CSS has become really powerful over the last couple of years with better browser support and I prefer it over lo
by lousken 10y ago
Whenever I can, I try to use CSS instead of js. CSS has become really powerful over the last couple of years with better browser support and I prefer it over loading extra javascript. You-dont-need-javascript[1] lists a couple of those great examples.
But as other people already said, if the website has to be interactive I use javascript but I try to keep it low and avoid libraries as much as I can (if I am gonna use just one thing out of x amount of others). 2G/FUP etc. are still a thing, unfortunately, and I don't want those users to suffer.
[1] https://github.com/you-dont-need/You-Dont-Need-Javascript https://github.com/you-dont-need/You-Dont-Need-Javascript
- jkmcf 10y agoI believe AWS uses/used CSS to animate their admin ui arrow spinners. They use enough CPU to turn the fans on my laptop which rarely turn on under normal circumstances.