openam-jp / openam

Other
32 stars 15 forks source link

Upgrade jQuery to new version #205

Open ogis-miyamura opened 4 years ago

ogis-miyamura commented 4 years ago

Description

jQuery is an important component that affects XUI and other javascript libraly. jQuery which OpenAM includes is an old version and does not reflect the latest improvements.

Solution

Upgrade jQuery to 3.4.0 or later for reflect the improvements.

Additional context

jQuery inclusion status

Known problem

tsujiguchitky commented 4 years ago

Deferred .then() now works asynchronously in jQuery 3.x. As a result, it seems that the order of XUI processing was broken and problems began to occur.

The upgrade guide says as follows:

Another behavior change required for Promises/A+ compliance is that Deferred .then() callbacks 
are always called asynchronously.
Previously, if a .then() callback was added to a Deferred that was already resolved or rejected, 
the callback would run immediately and synchronously.