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 and chroma-hash.js from plans login screen #303

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mrwweb
Copy link
Contributor

@mrwweb mrwweb commented Dec 8, 2024

I forgot about the chroma-hash feature that the login screen password's input used to have until I saw these console errors:

Loading modules with the jsapi loader is deprecated.

and then

Uncaught ReferenceError: jQuery is not defined

and then

Uncaught ReferenceError: $ is not defined

It appears that chroma-hash.js is the only reason for jQuery on the login screen at all so if we remove both we get rid of 119.15KB of JS (gzipped) on the home screen and the console errors.

I looked for other jQuery and chroma-hash references throughout the codebase and didn't find any. Also, they are all grouped together in index.php, further suggesting they were added all together. So I think this is a pretty safe change. If the form was working with the errors, I expect it will continue working without them.

Closes #301

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.

Remove jQuery from home page
1 participant