-
Notifications
You must be signed in to change notification settings - Fork 2k
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 editor import in gutenboard #41411
Remove editor import in gutenboard #41411
Conversation
The comment said it shouldn't be necessary. The comment was right, it wasn't.
Here is how your PR affects size of JS and CSS bundles shipped to the user's browser: Webpack Runtime (~109 bytes added 📈 [gzipped])
Webpack runtime for loading modules. It is included in the HTML page as an inline script. Is downloaded and parsed every time the app is loaded. App Entrypoints (~150071 bytes removed 📉 [gzipped])
Common code that is always downloaded and parsed every time the app is loaded, no matter which route is used. Sections (~2412 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 (~2358 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. |
Background for this in WordPress/gutenberg#19893 |
Oops. :-) |
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.
Still working well! 🎉
Thanks a ton @sgomes, I'd kinda forgotten about this one 😅
I like to keep these around for you, @sgomes, because I know how much pleasure you get from knocking 140KB out of our bundle 😉 Thanks! |
Looks like this legacy import is no longer needed.
This was severely impacting Gutenboarding entry point size, inflating it by ~670KB uncompressed, or ~140KB gzipped!! (two exclamation marks required)
It was pulling in a number of large components and dependencies, e.g. date picking stuff.
Local testing seems to indicate everything works fine after removal, as I was able to complete the creation process up until the full editor popped up.
Changes proposed in this Pull Request
@wordpress/editor
importTesting instructions
Ensure that Gutenboarding continues to work normally. Team Luna will know a lot better than me exactly what that entails 🙂