Skip to content

Maintenance: Refactor Javascript#2078

Open
Jixabon wants to merge 7 commits intomasterfrom
mtx/refactor-javascript
Open

Maintenance: Refactor Javascript#2078
Jixabon wants to merge 7 commits intomasterfrom
mtx/refactor-javascript

Conversation

@Jixabon
Copy link
Contributor

@Jixabon Jixabon commented Mar 22, 2026

This PR contains a pretty big overhaul/reorganization of the javascript code. It splits everything into modules, making it much easier to find and troubleshoot javascript ui and ajax handling code. Everything runs out of the new app.js file and is conditionally loaded based on the url pathname. This reduces the amount of code running per page load and reduces conflicts and errors failing to find elements that don't exist.

Note: There will be no conflicts due to completely new files. Thorough testing required. Also depending on time of merge and other PRs with JS changes they will need to be updated.

@billz
Copy link
Member

billz commented Mar 22, 2026

This is another long overdue maintenance / sanity update. Initial smoke test passes. Agreed this will require thorough testing.

I also think this is useful...

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants