-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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 from mkdocs theme #3649
Conversation
Side note: merging this PR will reduce the payload that the browser needs to download by 90kb (30kb gzipp'd), which is an improvement of -14% (currently 213kb gzipp'd). Thus, the MkDocs core theme should load faster! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. It is great to see this being worked on. I looked through the changes and they look good to me, but I'm weakest with JavaScript so I may have missed something.
Thanks for taking the time to look at this! ❤️ Do we want to release this with MkDocs 1.6.0, or afterwards? I've tested all that was apparent to me from reading the code and have found no problems (except for the visual regression mentioned in #3493 (comment), which are not related to the changes in this PR), but I'm also not a heavy user of the If it should go into 1.6.0, we can merge it. |
I would include this in 1.6.0 if we can. |
Seems reasonable. See also... #3648 (comment) |
Great! Since everybody seems to agree that we want this in 1.6.0, let's merge it. |
Since the
mkdocs
theme updated to Bootstrap 5, jQuery is not necessary anymore. I've replaced all uses of jQuery with common browser APIs and adapted the use of the modals to Bootstrap 5. My testing shows thatmaster
behaves exactly as if this PR were merged. If not, please report errors here and I'll fix them.I don't think jQuery can be removed from the
readthedocs
theme.Closes #3648