|
|
|
|
|
by unsupp0rted
935 days ago
|
|
> A website that requires JavaScript is, and always will be, worse than one that accomplishes the same without JavaScript. Are users happy? Is dev speed of improvement good enough? Can you onboard new devs easily enough? That’s it. Nobody cares if you used CSS or JS for a toggle switch. The only people who disable JavaScript in their browsers and expect the 2023 internet to accommodate them are right here in this thread. Just componentize it and move on to solving the next business problem, not the next code elegance problem. |
|
My 2 cents: native solutions like HTML and CSS are preferable: they are designed to degrade well, they work with screen readers, with increased font size, high contrast, and other less-known or unknown and even future use-cases and needs. No dev team has the time to test their custom JS solution on all possible browser targets, and in reality they frequently fail even basic accessibility needs for no good reason.
At least to me, honoring the principles of the web is our responsibility, especially in our current time when they are arguably under attack from well-funded players. I would hate to see the web degrade into a delivery mechanism for opaque executables that work only on corporate blessed mega-browsers.