mrkeyoor.comAsk

jquery/jquerytested 14 Oct 2026commit c2f2786

jquery review

Keep jQuery where existing plugins depend on it or its collection syntax serves your application.

  • Install 3.1 s
  • README snippet failed
872/872passed, run exited non-zero
  • 3.4 MB on disk
  • 0 dependencies
Webevaluationupdated 21 Nov 2026
+108stars / 7d

jQuery is a JavaScript library for finding page elements, changing them, responding to events and making web requests. It suits existing sites whose code or plugins use those APIs, and developers who prefer its collection syntax.

Verdict

Keep jQuery where existing plugins depend on it or its collection syntax serves your application. Skip the dependency for a new page whose operations native browser APIs already cover. Our October source build succeeded in 2 seconds, but the test command exited 1 after 143 seconds; the earlier review reported browser-launch failure. Its dependency and audit reporting disagreements remain unresolved. The November jQuery 4.1.0 installation succeeded, then the selected QUnit-reference snippet failed on an undefined expect.

jQuery infographic: select page elements and change them, plus its uses, our test result, pitfalls and who it suits
Tested 21 November 2026: the README snippet failed with "ReferenceError: expect is not". Before that: 14 Oct: source install 12 s, build 2 s; npm install took 3.1 s.

We ran it

Lab card: what happened when we ran jquery
Lab card from our sandbox run
Screenshot of jquery (jquery.com)
jquery.com
Install✓ · 12s677 packages · 275 MB
Build✓ · 2s
Tests✗ · 143s872 passed · 0 failed of 872 (mocha)
Known vulns00 critical · 0 high · 0 moderate · 0 low (npm audit)
Repo348 files~56,357 lines of source · 2.3 MB · 9 CI workflows · tests dir

Answers from our run

Does jquery build from source?

Dependencies installed in 12 seconds (677 packages), and the build succeeded in 2 seconds. We cloned commit c2f2786 into a clean Debian container with 3 CPUs and no project-specific setup.

Do jquery's tests pass?

No. The project's own test command finished in 143 seconds and reported 872 passed, 0 failed (mocha).

Does jquery have known vulnerabilities in its dependencies?

npm audit found none in the dependency tree at the time of our run.

Who should not use jquery?

Developers adding a dependency for isolated operations they already handle with native browser APIs.

What are the alternatives to jquery?

Native JavaScript, React, Vue. Keep jQuery where existing plugins depend on it or its collection syntax serves your application.

Setup3/5In our 2026-11-21 run it installed in 3.1 s, but the README’s “Test methods” example failed as written with “ReferenceError: expect is not defined”.Editor’s note: Installation and source building succeeded, but the source test command and package snippet failed; the two procedures do not support a complete setup assessment.
Docs3/5The README has an install section (“What you need to build your own jQuery”) and usage examples in code, but its “Test methods” example failed as written in our 2026-11-21 run (“ReferenceError: expect is not defined”).Editor’s note: The README describes source builds and QUnit references, and the browser guide supplies page context; a full documentation assessment was not performed.
Community5/5Last push on 2026-11-17, 60,108 stars and maintainers answered or closed 10 of the 10 most-discussed issues we sampled.Editor’s note: Named developer accounts and maintainer replies support attributed examples, but do not measure representative adoption or support response times.
Maturity4/5Latest release 4.1.0 on 2026-11-17, repository created 2009-04-03 and its test command exited with an error in our sandbox even though all 872 tests it reported passed.Editor’s note: Release policy and historical compatibility incidents document maintenance decisions; neither run assesses production reliability across applications.

How we score

Discussed on

  1. hnjQuery 4.1.0381 points
  2. hn$.url() - A simple, lightweight url parser for jQuery98 points
  3. hnShow HN: GitPrint.com – A site to easily print Markdown files on GitHub68 points
  4. hnFlat UI jQuery Theme64 points
  5. hnJQuery File Upload – Multiple File Upload Plugin for jQuery64 points

Who it’s for

Maintainers of sites with jQuery-dependent plugins who want an upgrade path before considering removal.
Developers who deliberately prefer collection operations for existing HTML.
Teams replacing components gradually while maintaining an existing application.

Who it’s NOT for

Developers adding a dependency for isolated operations they already handle with native browser APIs.
Interfaces requiring direct per-handler passive-event options through classic .on().
New projects choosing jQuery because an old tutorial recommends the deprecated jQuery Mobile project.

Setup reality

Our October 14 source run installed in 12 seconds and built in 2 seconds. Its stored dependency summary records 677 dependencies and 275 MB on disk; the earlier review reports a different package count in the raw installation footer. The stored npm audit summary records 0 known vulnerabilities; the earlier review reports nonzero advisories in that footer. Both reporting disagreements are unresolved. The test command exited 1 after 143 seconds, while the parser recorded 872 Mocha passes and 0 failures. The earlier review also reported a Chrome SessionNotCreatedError and no tests running at the listed Chrome and Firefox URLs.

The November package run installed jQuery 4.1.0 in 3.1 seconds, recorded 3.4 MB and 0 additional packages, then failed on a README test-reference snippet: ReferenceError: expect is not defined.

For a browser page, the official download guide offers a local file or a CDN script tag with integrity information. Choose the full build for Ajax or effects; slim omits both. The README requires Node.js/npm and Git for source builds, and a local server supporting PHP for its browser unit-test instructions. The November snippet belongs to the QUnit Test methods reference.

Keep jQuery if your application depends on its plugins or your team deliberately prefers its collection syntax. Skip it for a new page whose operations browser APIs already cover. Our October source build succeeded in 2 seconds, but the test command exited 1 after 143 seconds. In November, installing jQuery 4.1.0 succeeded before the selected README test-reference snippet stopped at ReferenceError: expect is not defined. The useful decision is whether your application needs the dependency, followed by which branch and build supply its APIs.

What people use jquery for

Developers describe using jQuery for marketing-page effects, WebAssembly interop and maintenance of existing applications.

Who used it What they did What happened
J-kun on Netlify's support forum Animated a mobile hamburger menu on a practice bakery website The site built, but the menu did not respond; J-kun reported success after a friend helped add an event listener. Bakery menu discussion
chikamakaleyley on r/webdev Used show, hide and fade methods for agency marketing websites The commenter learned methods for immediate tasks, then struggled to connect JavaScript fundamentals to that work. Agency developer's account
SerratedSharp on r/webdev Called jQuery through WASM interop The commenter described wrapping the collection object as easy and expressive. WASM interop account
Roarke99 on r/webdev Maintained an application migrated from Vue 2 to Vue 3 The developer described removing jQuery and Lodash when working on components. Component migration account

J-kun's bakery menu separates a successful deployment from a working interaction. The author said the script worked when pasted into the console, while the deployed click interaction failed. Changing between a downloaded file and a CDN had not solved the problem. The reported improvement came from adding an event listener, according to the Netlify discussion. That makes the example useful for beginners troubleshooting when their own code runs, rather than repeatedly changing how they download the library.

SerratedSharp's WASM account describes another reason to retain the library: one collection object exposed useful operations through the interop layer, which connects WebAssembly code to JavaScript. For a simpler browser exercise, Simply Learn's jQuery tutorial demonstrates an image fading on button clicks and reports the example working after changing to CDN delivery. These examples answer different needs: integrating existing code and learning a visible page interaction.

What happened when we ran it

Our November 21 run installed jQuery 4.1.0 in 3.1 seconds, then the selected README snippet failed in 0.1 seconds.

The November run record names repository commit effd615f0009 and a fresh unprivileged container labelled lab-node:22, with 2 CPUs, 4 GB RAM, no published ports and no secrets. The procedure installed the latest npm package and selected an unedited, three-line JavaScript block from the README's Test methods section because the installation and usage sections had no such block. The record describes a package installation followed by execution with Node.

November package check Recorded result
Clone 1 second.
Package installation npm install jquery@latest installed jQuery 4.1.0 in 3.1 seconds.
Installed directory 3.4 MB in node_modules.
Additional packages 0 packages besides jQuery.
README block Exit 1 after 0.1 seconds: ReferenceError: expect is not defined.
Teardown Recorded as ok.

The package installation completed before execution stopped on expect. The README places expect( numAssertions );, stop(); and start(); under QUnit Reference and Test methods. Those lines describe testing infrastructure. The recorded finding says the snippet does not run as written. For a first page interaction, the browser learning guide supplies the relevant HTML context and explains how its script path must match the downloaded file.

Our October 14 source run used commit c2f2786, 3 CPUs, 8 GB RAM and image label lab-node:22. The checkout contained 348 files, about 56,357 source lines and 2.3 MB of files. In our source run, installation succeeded in 12 seconds and building succeeded in 2 seconds. This job installed contributor dependencies and built the repository; the November job installed the published npm package.

October source check Recorded result
Install Succeeded in 12 seconds; stored summary: 677 dependencies and 275 MB on disk. The earlier review reports a different package count in the raw installation footer; the disagreement is unresolved.
Build Succeeded in 2 seconds
Test command Exit 1 after 143 seconds
Parsed Mocha result 872 passed, 0 failed, out of 872
npm audit Stored summary: 0 known vulnerabilities across all severity levels. The earlier review reports nonzero advisories in the raw installation footer; the disagreement is unresolved.

The October measurement retains Node smoke-test successes, repeated 872 passing summaries and a JSDOM basic check reporting 14 passed. 1 skipped. before All tests passed!. The command still exited 1. The earlier published review separately reported a Chrome SessionNotCreatedError because the Chrome instance exited, followed by messages that no tests ran at the listed Chrome and Firefox URLs. That is an attributed browser-execution failure, distinct from assertion failures and from the passing summaries retained here.

Where people get stuck: plugins and event options

Issue #2824 documents an upgrade rejecting an unquoted hash in an attribute selector that earlier versions accepted.

The reporter compared jQuery 1.11.2 with 1.12.0. Maintainer dmethvin explained that special characters require a quoted attribute value, and the discussion described affected WordPress themes. The correction in issue #2824 is to quote the value and update affected themes. A dependency inventory therefore needs to include selectors inside plugins and themes as well as code maintained directly by the application team.

Report What the discussion says Maintenance decision
#2824: attribute selector An unquoted hash accepted in 1.11.2 was rejected in 1.12.0; maintainers called the earlier syntax invalid CSS. Quote the attribute value and include themes in the upgrade work.
#4665: data-module change InvoicePlane reported an e.hasOwnProperty error after 3.5.0 and temporarily pinned to approximately 3.4.1. Use the incident to identify data-object assumptions in dependent code.
#2871: passive listeners Special-event hooks allow shared passive behavior for a particular event type on an element. Use native listener options when handlers require direct individual control.

A passive listener promises not to cancel the browser's default action. In issue #2871, dmethvin describes a workaround whose handlers of a particular event type on one element must agree about passive behavior. That constraint makes the choice concrete: an application needing different listener options has a reason to use the native event API. The historical data-module discussion, meanwhile, records maintainers discussing a 3.5.1 correction after the reported 3.5.0 breakage.

Security: selector fixes and script handling

The November release announcement reports a selector ReDoS fix in jQuery 4.1.0 and 3.8.0.

ReDoS means regular-expression denial of service: an input causes excessive pattern-matching work. The release announcement describes identifier matching that could backtrack catastrophically on a long chain of hexadecimal escapes followed by an invalid character, potentially hanging the page. It places the correction under changes in both releases. For maintainers deciding whether to upgrade, this is a specific release change to assess alongside plugin compatibility and branch support.

Historical script-handling reports identify other useful regression cases. In issue #3541, a reporter using jQuery 3.1.1 described recreated script elements losing their nonce, the value permitting scripts under a Content Security Policy. The reporter said a contributor's patch worked. In issue #2432, maintainers discussed response-type guessing and advised an explicit text data type when callers wanted data rather than script execution. Both discussions connect security behavior to the exact operations an application performs.

jQuery vs vanilla JavaScript, React, Vue and Alpine

React's README describes components that manage their own state; jQuery's API describes collections of matched or created elements.

Choice Evidence behind the comparison Decision for your page
Native JavaScript Developers discuss replacing jQuery calls, while pyeri prefers its collection ergonomics. Developer discussion Choose browser APIs when they express your operations clearly and remove the dependency.
React Its README describes encapsulated components managing their own state. React README Choose a component model when state and component ownership should organize the interface.
Vue Roarke99 describes removing jQuery while working on components after a Vue 2 to Vue 3 migration. Migration account Consider removal as part of existing component maintenance.
Alpine.js or HTMX A commenter distinguishes adding HTML reactivity from jQuery's broader utility role. Scope discussion Consider these for the HTML reactivity task described in that discussion.
jQuery slim The download page says slim excludes Ajax and effects. Build options Select it when your application and plugins use neither module.

Keeping jQuery still means writing JavaScript. The jQuery API explains that its core function returns a collection of matched or created elements, whereas the React README explains composition through components and state. The short comparison video favors jQuery for selecting an existing list item. That narrow example is useful for discussing syntax, while the component decision concerns how the application owns and updates its interface.

For individual replacements, the existing You Don't Need jQuery review addresses familiar calls and native equivalents. This review addresses retaining the dependency and choosing an upgrade path. Roarke99's migration account connects the two decisions: removing calls while already working on a component can fit an existing maintenance task. A plugin that still requires jQuery remains part of the dependency inventory even after unrelated application calls have been replaced.

The CDN link should come from the release picker

The official download page directs readers to releases.jquery.com for a version-specific script tag with an integrity attribute.

The download instructions say to choose a file version and copy its complete script tag. Subresource Integrity allows supporting browsers to check the delivered file against the expected content. Select the release and build together: slim excludes Ajax and effects, so code using those modules needs a different file. The same page offers local downloads, uncompressed development files and source maps for debugging compressed production files.

The dated release choice is jQuery 4.1.0 in the November 17, 2026 announcement and the download page. The announcement also releases 3.8.0 and says the 3.x branch will receive only critical security and bug fixes going forward. The README support table lists full support for 4.x, critical-only support for 3.x, and no support for 1.x or 2.x. Branch policy and the APIs your plugins need both belong in the version decision.

What the other reviews get wrong

GeeksforGeeks' comparison articles make conversion and browser-compatibility claims that conflict with jQuery's own description and release notes.

“Difference Between JavaScript and jQuery” says jQuery must be converted into JavaScript to run in a browser. Its comparison text is misleading because jQuery is itself a JavaScript library. The article also gives a 19kb size claim, while the homepage advertises 30kB minified and gzipped. A useful size comparison identifies version, build and compression. “When to use Vanilla JavaScript vs jQuery?” claims there are no browser compatibility issues, while the release notes describe rare legacy-browser crashes and a Safari regex workaround.

CSS-Plus explicitly labels its 2010 troubleshooting article outdated. Its file-path and loading-order checks address concrete troubleshooting steps, but its explanation that jQuery turns snippets into normal JavaScript repeats the conversion misconception. Simply Learn's tutorial calls 3.6.0 current in a discussion situated in 2021. The short video's recommendation to continue with jQuery Mobile also needs correction: the official homepage labels Mobile deprecated and jQuery UI maintenance-only.

The homepage snapshot offers 4.0.0 and says only the latest version is supported. The newer download page identifies 4.1.0, while the November announcement explains continuing critical fixes for 3.x. Follow the dated release information for branch decisions. The old tutorial can still illustrate a selector or click handler, but its version recommendation belongs to the date of that tutorial rather than the current release decision.

Questions people ask

jQuery was maintained in November 2026: its release announcement identifies jQuery 4.1.0 and 3.8.0.

Is jQuery still used and maintained in 2026?

Yes: the November release announcement describes both releases, and named developers describe ongoing use. Roarke99 reports maintaining an existing application while replacing jQuery component by component; pyeri describes choosing its readable DOM operations and accepting the dependency cost. Those developer accounts give maintainers two concrete approaches: retain syntax that serves the application, or remove the dependency alongside work already happening in its components.

What are practical use cases for jQuery in 2026?

Marketing-page effects and WASM interop are two uses described in the r/webdev discussion. chikamakaleyley recalls learning show, hide and fade methods for agency websites, while SerratedSharp describes wrapping the jQuery collection object for interop. J-kun's bakery menu discussion adds a small interaction example and a troubleshooting lesson: the reported correction involved an event listener after changing delivery methods had failed to solve the click behavior.

Is removing jQuery from an older application worth the work?

Roarke99 describes removing jQuery and Lodash whenever working on a component in an application migrated from Vue 2 to Vue 3. That maintenance account supports gradual removal tied to existing work. Inventory dependent plugins before estimating the task: replacing application selectors while retaining a jQuery-dependent plugin leaves the dependency in place. The relevant outcome is which dependency or maintenance obligation the proposed change actually removes from your application.

How can a complete beginner learn jQuery?

The official basics guide starts with an HTML page that loads a local jquery.js file before the reader's code. It explains that the script's source path must match the downloaded filename, including any version number. Use that browser context to connect CSS selectors, functions and events to the library. The agency developer's account also gives a reason to study JavaScript fundamentals alongside useful jQuery methods: learning individual effects did not automatically explain control flow or looping.

How do I learn to use jQuery with Ajax?

Choose the full build because the download page says slim excludes Ajax. The README lists Ajax methods and transports among the modules that custom builds can exclude. Learn the response type alongside the request syntax: the historical discussion in issue #2432 advises requesting text explicitly when automatic script detection is inappropriate. That connects the installation choice to the request behavior the application needs.

What we have not tested yet

The October source build and November snippet attempt do not measure a browser interaction or a completed application migration.

The earlier review's Chrome launch error is preserved here as a prior reported observation, without independently rechecking the underlying browser log. Why Chrome exited is unknown. The stored 677-package count disagrees with the installation-footer account, and the stored zero-advisory audit summary disagrees with that footer's nonzero advisories. Audit scan scope is unknown because scannedPackages is absent. No reconciliation or new execution occurred for this correction, and actual runtime and operating-system versions require raw toolchain logs rather than container labels.

The parser's 872 Mocha passes are not established as a unique or exhaustive total; the retained tail contains repeated passing summaries. The source-development footprint and npm package-directory footprint do not measure compressed browser transfer size. The November record names a repository commit separately from the installed npm release. Neither run assesses plugin combinations, WordPress theme upgrades, the passive-event workaround, WASM interop, strict Content Security Policy behavior or current Ajax security regressions.

The historical CSP, data-module and Ajax discussions do not establish a complete mapping to released fixes. The selector announcement does not provide a complete affected-version range or a CVE, so this review assigns neither to 3.7.1. Comparative download speed, execution, battery use, migration effort and framework performance remain unmeasured. Community accounts do not establish representative adoption or support response times. Rendered layout, related links, recommendation modules and other template behavior also fall outside this text review.

Alternatives

ProjectWhat it isPick it when
Native JavaScriptBrowser APIs can cover page operations without adding jQuery.Choose it when your page operations are already clear with browser APIs and no plugin requires jQuery.
React gh↗React organizes interfaces through components that manage their own state.Choose it when components and state should organize the interface.
Vue gh↗Roarke99 describes removing jQuery while maintaining components in an application migrated from Vue 2 to Vue 3.Consider it when your existing Vue application is already replacing jQuery as components change.
Alpine.js gh↗An alternative discussed by developers for adding reactive behavior to HTML.Consider it when HTML reactivity is the task you want to solve.

What people are saying

  1. [github-trending] jquery/jquery

Sources

  1. jQuery 4.1.0 and 3.8.0 Released: Passing the Torch
  2. Download jQuery
  3. jQuery API documentation
  4. jQuery source README
  5. React README

More web reviews