[meta] How do we approach core/drupal.ajax divorcing from jQuery?

Created on 21 December 2020, over 4 years ago
Updated 26 May 2023, almost 2 years ago

Problem/Motivation

Efforts are underway to remove jQuery from core: ๐ŸŒฑ [meta] Replace JQuery with vanilla Javascript in core Active
The functionality in ajax.es6.js seems particularly tricky to separate from jQuery. It seems unlikely it could be accomplished in the scope of a single issue, so this is going to be a meta.

Removing the dependency on the jquery-form library seems like a priority. It's possible the jQuery removal efforts won't complete before it becomes necessary to update to jQuery 4. There's no guarantee that jquery-form will work with jQuery 4, particularly since the library already officially states "Partially compatible with jQuery 3".

Steps to reproduce

Proposed resolution

  • Figure out the best way to approach un-jQuerying Drupal core ajax. Consider things like deprecating specific functionality, using modern libraries to achieve equivalent results, see what can be converted to simple Vanilla JS now that ES6 does cool stuff that wasn't available when core/drupal.ajax was built.
  • Create issues

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

๐ŸŒฑ Plan
Status

Needs work

Version

11.0 ๐Ÿ”ฅ

Component
Javascriptย  โ†’

Last updated about 5 hours ago

  • Maintained by
  • ๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom @justafish
  • ๐Ÿ‡ซ๐Ÿ‡ทFrance @nod_
Created by

๐Ÿ‡บ๐Ÿ‡ธUnited States bnjmnm Ann Arbor, MI

Live updates comments and jobs are added and updated live.
  • JavaScript

    Affects the content, performance, or handling of Javascript.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024