When to use CSS vs. JS for WordPress best practices?
- This topic is empty.
-
AuthorPosts
-
RebeccaGuest
CSS is easier for me but some of the new features are kind of hacky IMO… it just seems like some guys trying to do too much with CSS.
I stumbled on this post
RobertGuestgreat quote from it
A few years ago, there was an obsession with finding creative CSS hacks for things that would normally be done in JS.
A CSS-only expand/collapse navigation menu is the one that jumps to mind. Here’s an example. These are really cool examples of pushing CSS farther and thinking about code creatively, but…
The results are often wildly inaccessible.
CarolynGuestI think one problem with JS is that nobody ever knows which “JS” you are talking about, that is vanilla javascript, jQuery, React, Vue, some other frameworks or can be anything.
CSS, well is CSS (mostly)
ZacharyGuestJS frameworks have created a generation of JS snobs…..
JoshuaGuest😂
JudyGuestmostly CSS is better, because its lighter and faster. but it depends on what you’re trying to do because CSS3 can require too many declarations to do something that JS only needs a few lines to accomplish (and maybe more reliable)
-
AuthorPosts