-
Notifications
You must be signed in to change notification settings - Fork 28
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
Remove jQuery from user-notes.js
#530
Conversation
scrollTop: pos.top - wpAdminBar - 16 | ||
}, 1 ); | ||
// Scroll to comment if comment date link is clicked. | ||
document.querySelectorAll( '#comments .comment-date' ).forEach( ( element ) => { |
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.
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?
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.
Thanks for the PR! |
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.