3 ms·
I have a suspicion that on a long enough timeline, eventually CSS will subsume the interactivity of JS for the frontend.
by lagniappe 3y ago
I have a suspicion that on a long enough timeline, eventually CSS will subsume the interactivity of JS for the frontend.
- PaulHoule 3y agoI wish people used CSS for semantic tagging, to take over some of the role that JSON-LD and all the other half-baked standards for adding metadata and annotations to HTML. Why do we have the Rube Goldberg machine called ARIA when we could use CSS attributes to express the same information quite naturally?
- douglee650 3y agoThis is probably the right answer … for ex. why does css need trig? Well, if you want to transform and animate things, math is very useful.
- bamfly 3y agoI've not investigated it to prove my hypothesis, but I've long suspected that CSS doesn't get enough of the blame for the modern Web being so bloated and resource-hungry. But then, I still remember when it was considered disrespectful to the user and generally ill-advised to ship vector graphics unless absolutely necessary, because it'd offload too much processing on the client and harm performance. Now people do 3D transforms of DIVs and apply blur and such with CSS on every page load because pre-calculating it would be more work (or practically impossible). And they think nothing of doing this, maybe dozens of times on a single page.