tomw,
@tomw@mastodon.social avatar

I just used jQuery in a new project and you know what, I don't even feel bad. I just needed to hide all the elements with one class and show all the elements with a different class. A one-liner in jQuery and not in anything else!

tomw,
@tomw@mastodon.social avatar

(It seems like it would be easy in vanilla JS but you have to do some messy iteration as far as I can tell)

tomw,
@tomw@mastodon.social avatar

Name a better API than

$('.myclass').hide();

(Which hides not just one element, but all with that class.)

I'll wait.

tomw,
@tomw@mastodon.social avatar

Everyone turned against jQuery because it was a "big" dependency, which it kind of was... 10 years ago.

Nowadays people are importing 100x more JS without a second thought. jQuery is snappy compared to 'modern' websites.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • GTA5RPClips
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • tacticalgear
  • cubers
  • Youngstown
  • mdbf
  • slotface
  • rosin
  • osvaldo12
  • ngwrru68w68
  • kavyap
  • InstantRegret
  • JUstTest
  • everett
  • Durango
  • cisconetworking
  • khanakhh
  • ethstaker
  • tester
  • anitta
  • Leos
  • normalnudes
  • modclub
  • megavids
  • provamag3
  • lostlight
  • All magazines