More than a year after the release of jQuery 3.6.0, there is a maintenance update: 3.6.1.

Major changes

The team said they did a lot of work in this release to update some testing and build infrastructure, including migrating CI from Travis CI to GitHub Actions, testing on Node 16 instead of Node 15, loading test listeners over https, As well as adding more accuracy testing for custom builds.

Also, they removed some old links from the comments of some files in the repository. Because these links point to leaked URLs. Although these files were never distributed in a release, they were present in the GitHub source code after all.

  • fix the bug of losing focus

There is also a focus-related fix in this release. Specifically,Even after the jQuery focus handler was removed, the special event handling for focus remained wired, which broke any subsequent manual focus triggers. E.g:


$elem.on("focus", function() {}).off("focus").trigger("focus");

Does not trigger get to get focus.

  • Optimize jQuery.trim performance

AlthoughjQuery.trimhas been removed on the master branch for native support in the next major releaseString#trim, but it is still required on the 3.x branch for some browsers supported by the branch (eg Android 4.0). Some corner cases are very slow due to problems with the structure of the regex. But now that has changed, and the speed increase is significant.

See the release announcement for details.

jQuery is a fast, small, and feature-rich JavaScript library. It makes traversing and manipulating HTML documents, event handling, animations, and Ajax easier with an easy-to-use API, available in multiple browsers. Combining versatility and extensibility, jQuery has changed the way millions of people write JavaScript.

#jQuery #released #optimize #jQuerytrim #performance #fix #focusrelated #errors #News Fast Delivery

Leave a Comment

Your email address will not be published. Required fields are marked *