Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove JQuery #4879

Merged
merged 8 commits into from
Aug 14, 2023
Merged

Remove JQuery #4879

merged 8 commits into from
Aug 14, 2023

Conversation

jorg-vr
Copy link
Contributor

@jorg-vr jorg-vr commented Aug 8, 2023

This pull request removes all remaining usage of jquery. It also removes JQUery as a javascript dependency.

It contains two new helper functions. One avoids code duplication for initializing the correct bootstrap tab.
The other function replaces jquery replaceWith.

I have verified every usage of $( and $. in our codebase.
The only remaining jquery is in the pytutor, which imports it's own jquery.

The impact on the non minimized java script is 0.27 MB.
Old:
image
New:
image

Closes #3590

@jorg-vr jorg-vr added the chore Repository/build/dependency maintenance label Aug 8, 2023
@jorg-vr jorg-vr self-assigned this Aug 8, 2023
@jorg-vr jorg-vr changed the title Replace simple jquery Replace all jquery in views Aug 8, 2023
@jorg-vr jorg-vr marked this pull request as ready for review August 9, 2023 11:53
@jorg-vr jorg-vr requested a review from a team as a code owner August 9, 2023 11:53
@jorg-vr jorg-vr requested review from bmesuere and niknetniko and removed request for a team August 9, 2023 11:53
@jorg-vr jorg-vr changed the title Replace all jquery in views Remove JQuery Aug 9, 2023
@jorg-vr jorg-vr marked this pull request as draft August 9, 2023 12:18
@jorg-vr jorg-vr marked this pull request as ready for review August 9, 2023 12:29
@jorg-vr jorg-vr merged commit 8ca05cf into main Aug 14, 2023
12 of 13 checks passed
@jorg-vr jorg-vr deleted the chore/remove-jquery branch August 14, 2023 06:51
@jorg-vr jorg-vr temporarily deployed to naos August 14, 2023 06:52 — with GitHub Actions Inactive
@jorg-vr jorg-vr temporarily deployed to production August 14, 2023 06:56 — with GitHub Actions Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Repository/build/dependency maintenance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tracking: JS modernization
3 participants