Remove dependency on JQuery

Created on 29 June 2022, over 2 years ago
Updated 30 January 2025, about 20 hours ago

Problem/Motivation

JQuery is not a dependency for Drupal for the visitor-facing front-end (for example, the new Olivero theme does not use it) and there is an effort to remove JQuery altogether: ๐ŸŒฑ [meta] Replace JQuery with vanilla Javascript in core Active

Notably, JQuery was successfully removed from core's BigPipe module recently.

Steps to reproduce

Using Radioactivity adds 32kb of JQuery to pages only showing content to people, which did not need it before.

Proposed resolution

Refactor to remove the dependency on JQuery.

Remaining tasks

Replace $.ajax with Drupal.ajax (so core/jquery with core/drupal.ajax in the libraries dependencies.

โ€ฆand i think that's it?

User interface changes

None.

API changes

None.

Data model changes

None.

๐Ÿ“Œ Task
Status

Needs work

Version

4.1

Component

Code

Created by

๐Ÿ‡บ๐Ÿ‡ธUnited States mlncn Minneapolis, MN, USA

Live updates comments and jobs are added and updated live.
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