jQuery is one of the most popular and used Javascript libraries due to its speed, simplicity and the wide range of possibilities it offers.
It allows the handling of events, animations, dynamic content loading, etc. with a few lines of code.
It also works in the most used browsers such as IE, Safari, Mozilla, Chrome.
Version 3 began preparation in October 2014 and was released in June 2016.
What are the main new features of jQuery 3?
What are the main advantages of this library compared to versions 1 and 2?
What to do to start using it?
Note: Although it could be considered a very broad question, I find the existence of a gender question useful for several reasons, among them.
We are talking about a new version of the library, so it would be important to have at least the basic information about it at hand.
jQuery is used by millions of users, many of them Spanish-speaking, and at least for now all that information will basically exist in English.
jQuery 3 introduces important changes with respect to its previous versions.
URL to official documentation:
https://jquery.com/upgrade-guide/3.0/#summary-of-important-changes
This is the change summary where all your questions are explained. It has actual code examples and details what features have been added or changed as well as why.
Summary of the most important changes of jQuery in version 3.0.
There are three types of changes depending on their impact on the jquery code of who uses an older version:
Once this is understood, we must know which are the most important methods that undergo changes.
Ajax, features 3 Breaking-Changes and a Feature.
Attributes, it has two Breaking-Changes, a Feature and a Deprecate.
Callback , or anonymous return calls, have 1 Feature.
Core, features 7 Breaking-Changes, 2 Features, and 3 Deprecates.
Example:
.
Example:
.
Example:
.
The jQuery.unique() method is renamed jQuery.uniqueSort()
Example:
.
Data , presents a Breaking-Change.
Example:
Deferred or deferred methods, presents 3 Breaking-Changes
Example:
Dimensions, features 2 Breaking-Changes.
Effects, features 1 Braking-Change, 1 Feature and 2 Deprecates
Event features 5 Break-Changes and a Deprecate
While the .bind(), .unbind(), .delegate(), and .undelegate() methods are still executable, they are deprecated and discouraged. Use on() and off() instead.
Removed use of .on("ready", fn) , change to $(fn) .
Selectors
Example:
Well, these are the ones that I think are the most important, as I said, the question asked is very extensive and it would be necessary to go deeper, but to begin with, it is fine.