-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Excludes Magento_Tinymce3 scripts from the bundling, saves about 3.7 … #24477
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
Excludes Magento_Tinymce3 scripts from the bundling, saves about 3.7 … #24477
Conversation
Hi @hostep. Thank you for your contribution
For more details, please, review the Magento Contributor Guide documentation. |
Hi @sidolov, thank you for the review.
|
…MB in the generated JS bundles.
ce757b8
to
4751251
Compare
@sidolov: be aware, I've just pushed another fix in this PR, to also exclude those files from the |
Hi @sidolov, thank you for the review. |
✔️ QA Passed |
Hi @hostep, thank you for your contribution! |
…MB in the generated JS bundle size.
Description (*)
This was discovered by accident (we normally disable the Magento_Tinymce3 module so we didn't notice this before).
Anyways, the Magento_Tinymce3 module was introduced in Magento 2.3.0, so this is probably already going on since then.
Apparently it was forgotten to exclude the javascripts of that module from the JS Bundling.
The JS bundle files took a total of about 6.9 MB and consisted of 8 files.
With this added exclusion, the bundled files are reduced to 3.2 MB and only consist of 4 files.
Fixed Issues (if relevant)
None that I could find
Manual testing scenarios (*)
pub/static/frontend/Magento/blank/en_US/js/bundle/
andpub/static/frontend/Magento/luma/en_US/js/bundle/
Somebody should probably also test if when you switch from TinyMCE4 to TinyMCE3 everything still works as expected, this is found in the configuration under General > Content Management > WYSIWYG Options > WYSIWYG Editor (I didn't go this far to test this).
Questions or comments
Stuff like this should get caught automatically somehow, if in one release the bundle size suddenly increases significantly, this should raise some flags ...
Contribution checklist (*)