4 ms·
It seems to me, many web developers today don't even realize, that creating features without js and enriching the experience from that baseline, not only enhanc
by Grumbledour 8y ago
It seems to me, many web developers today don't even realize, that creating features without js and enriching the experience from that baseline, not only enhances performance and accessibility, but in the end is often not more work and might even lead to cleaner, leaner code. I guess in the end it just comes down to which tools one learned first and based on that which approach one takes to solve the problem at hand.
I can only encourage everyone that thinks js is the catch-all solution to dive a bit deeper into html&css and try out alternate solutions. It's worth it for the knowledge gain in itself but offers many other benefits.
- nebulous1 8y agocss is often the slowest part of a webapp. complex css like this is not necessarily better accessibility-wise than javascipt
- Grumbledour 8y agoWhy complex? Sure, this example is somewhat complex, but it does not need to be. Structure the menu in nested ul's, add simple hover css and don't use "display: none;" but rather "position: absolute; left: -999em;" and you get simple css and a good html structure that a screen reader for example can read easily and which also is clear to read if you turn css off entirely. Of course, small hover menus offer their own accessibility challenges, but they don't depend on the way they are implemented but rather the choice of UX. And no reason why you could not improve this simple css menu with some js to make it more user friendly (like turning hover into clicks etc.)
- jensvdh 8y agoDo you have some proof to back this? CSS matching is incredibly fast.
- deleted 8y ago[deleted]