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
Framework: Remove usages of lodash trimEnd() #48255
Conversation
Here is how your PR affects size of JS and CSS bundles shipped to the user's browser: Sections (~637 bytes removed 📉 [gzipped])
Sections contain code specific for a given set of routes. Is downloaded and parsed only when a particular route is navigated to. Async-loaded Components (~210 bytes removed 📉 [gzipped])
React components that are loaded lazily, when a certain part of UI is displayed for the first time. Legend What is parsed and gzip size?Parsed Size: Uncompressed size of the JS and CSS files. This much code needs to be parsed and stored in memory. Generated by performance advisor bot at iscalypsofastyet.com. |
Caution: This PR affects files in the Editing Toolkit Plugin on WordPress.com D54173-code has been created so you can easily test it on your sandbox. See this FieldGuide page about developing the Editing Toolkit Plugin for more info: PCYsg-ly5-p2 |
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.
LGTM, good work @tyxla! 👍
I didn't test the changes in Calypso, as I can't easily reproduce the test conditions, but I did manually test the changes and verified that the behaviour matches the Lodash code it replaces.
Thanks for the review, @sgomes 🙌 |
We have only a couple usages of lodash's
trimEnd()
method. They can be refactored to use native methods. This PR removes them, in order to make us a bit less dependent on lodash.This PR should not offer any visual or functional changes.
Changes proposed in this Pull Request
trimEnd()
and sometrim()
usages alongside that.Testing instructions
/domains/manage/:domain/redirect-settings/:site
where:domain
and:site
correspond to a WP.com site that has a site redirect enabled./settings/security/:site
where:site
is a Jetpack site with a paid plan.Prevent brute force login attacks
card.