I visited the homepages of the 14.8 million sites in Google’s Chrome UX Report in October.

I thought jQuery would be dead, but it’s still on 53.7% of sites, and it seems to be tied quite tightly to the platform. Webflow puts it on 97.6% of its sites, WordPress on 84.9%. For contrast, React is on 10.6% of sites.

jQuery helped me get into web development, and I guess it still gets the job done even if redundant with browser standards these days…

  • tatterdemalion@programming.dev
    link
    fedilink
    arrow-up
    2
    ·
    2 days ago

    Forgive me if I’m off base, because I have not used jquery personally, but from what I’ve read, jQuery is both redundant and has a lot of footguns. I think it’s reasonable for people to discourage its use, especially for new applications that simply don’t need it.

    • Hmm, my instinct tells me to defend myself, but honestly, you are basically right. I meant to say “not everything needs React/…”, but my comment accidentally defended jQuery instead. One cannot really recommend anymore to start developing with jQuery, that’s true. However, I wouldn’t necessarily urge existing websites to move away from it either, it’s not really that nasty. In that regard, my previous comment was confusing. jQuery kinda is outdated, but not dangerously so. There are some footguns, like using selectors with string interpolation with unsafe input (which yeeaars ago could lead to HTML injection, but even now, unsafe input might contain unexpected commas), but I wouldn’t trust the same devs who make those mistakes to make less mistakes with e.g. Angular.