Skip to content
Snippets Groups Projects
Commit 25ccfb1d authored by Benjamin Franzke's avatar Benjamin Franzke
Browse files

[!!!][TASK] Remove global jquery object window.$

The global window.$ accessor to the jQuery instance is now
no longer provided.
Global jQuery usage has been deprecated in #86438 with the
suggestion to use JavaScript modules instead. With the
integration of browser native ES6 modules jQuery should
now be loaded as a regular module.

Some remaining cases in acceptance test are removed.
$.active == 0 checks have been no-ops as jQuery.ajax
isn't used in those components anymore
(core AjaxRequest which uses fetch() is used instead),
therefore $.active always resolved to 0.
This reveals why the additional 0.5s timeout-hack had been
added there, the method is now explicitly marked as an
explicit timeout instead of a waiting-method.

Note that window.jQuery is still provided if the
bootstrap javascript module is loaded as bootstrap JS
needs to load jQuery from the global window object.
window.jQuery global will be removed once we drop
bootstrap jquery interop (which is another breaking change).

Resolves: #97243
Related: #86438
Releases: main
Change-Id: Ib1d937e474c9be1ef08bc941ac468a8ad1c3948a
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/74030


Tested-by: default avatarAndreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarBenni Mack <benni@typo3.org>
Tested-by: default avatarBenjamin Franzke <bfr@qbus.de>
Reviewed-by: default avatarAndreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
Reviewed-by: default avatarBenjamin Franzke <bfr@qbus.de>
parent 370d1d12
Branches
Tags
Showing
with 77 additions and 52 deletions
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment