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 from user-notes.js #530

Merged

Conversation

cbravobernal
Copy link
Contributor

What

Remove jQuery from user-notes.js

Why

jQuery is known to inflate the bundle size of packages, and in most cases, it can be replaced with native language functionality.

@cbravobernal cbravobernal marked this pull request as ready for review July 23, 2024 11:42
@adamwoodnz adamwoodnz added the [Type] Enhancement New feature or request label Jul 23, 2024
scrollTop: pos.top - wpAdminBar - 16
}, 1 );
// Scroll to comment if comment date link is clicked.
document.querySelectorAll( '#comments .comment-date' ).forEach( ( element ) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't believe this code path is even working anymore as I can't find the #comments parent. Do I have that wrong?

Should we remove this smooth scrolling if that is the case?

Copy link
Contributor Author

@cbravobernal cbravobernal Aug 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it was also not working here:
#532

Fixed in 9bb5d46 and 2d7c1ed

@StevenDufresne
Copy link
Contributor

Thanks for the PR!

@StevenDufresne StevenDufresne merged commit f88f511 into WordPress:trunk Aug 23, 2024
2 checks passed
@cbravobernal cbravobernal deleted the refactor/remove-jquery-user-notes branch August 23, 2024 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants