-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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 polyfills from view.js block scripts #35038
Conversation
Size Change: 0 B Total Size: 1.07 MB ℹ️ View Unchanged
|
2315a04
to
1be1d71
Compare
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.
Thank you for opening this PR. It should be fine to proceed this way. Can we simplify the implementation and avoid having the list of plugins duplicated?
Can we clarify what polyfills are we removing from view.js scripts here? I actually thought all our scripts didn't include any polyfill because we have a separate |
In WP-Admin, we always set |
Exactly. We may need |
1be1d71
to
0301d20
Compare
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.
It looks good from my perspecitve. Let's wait for @youknowriad to confirm we are on the same page.
We will have to apply the same changes in the WordPress core.
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.
Works as advertised :) LGTM!
Works for me 👍 If I understood properly, we don't add |
Correct 👍 |
With the merging of WordPress/gutenberg#35038 the wp-polyfill is no longer a required dependency for the blocks.
With the merging of WordPress/gutenberg#35038 the wp-polyfill is no longer a required dependency for the blocks.
Related changes in Gutenberg: WordPress/gutenberg#35038. When adding a block with a view.js script, the frontend loads an additional ~20kb of scripts that were previously not there. These are coming from polyfills that are defined as a dependency for view.js scripts. Since WordPress dropped support for IE, these polyfills are no longer needed and can be removed. Follow-up to [51501]. See #53690. Props aristath. git-svn-id: https://develop.svn.wordpress.org/trunk@52011 602fd350-edb4-49c9-b593-d223f7449a82
Related changes in Gutenberg: WordPress/gutenberg#35038. When adding a block with a view.js script, the frontend loads an additional ~20kb of scripts that were previously not there. These are coming from polyfills that are defined as a dependency for view.js scripts. Since WordPress dropped support for IE, these polyfills are no longer needed and can be removed. Follow-up to [51501]. See #53690. Props aristath. git-svn-id: https://develop.svn.wordpress.org/trunk@52011 602fd350-edb4-49c9-b593-d223f7449a82
Backported to WordPress core in https://core.trac.wordpress.org/changeset/52011. |
Related changes in Gutenberg: WordPress/gutenberg#35038. When adding a block with a view.js script, the frontend loads an additional ~20kb of scripts that were previously not there. These are coming from polyfills that are defined as a dependency for view.js scripts. Since WordPress dropped support for IE, these polyfills are no longer needed and can be removed. Follow-up to [51501]. See #53690. Props aristath. Built from https://develop.svn.wordpress.org/trunk@52011 git-svn-id: http://core.svn.wordpress.org/trunk@51602 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Related changes in Gutenberg: WordPress/gutenberg#35038. When adding a block with a view.js script, the frontend loads an additional ~20kb of scripts that were previously not there. These are coming from polyfills that are defined as a dependency for view.js scripts. Since WordPress dropped support for IE, these polyfills are no longer needed and can be removed. Follow-up to [51501]. See #53690. Props aristath. Built from https://develop.svn.wordpress.org/trunk@52011 git-svn-id: https://core.svn.wordpress.org/trunk@51602 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Related changes in Gutenberg: WordPress/gutenberg#35038. When adding a block with a view.js script, the frontend loads an additional ~20kb of scripts that were previously not there. These are coming from polyfills that are defined as a dependency for view.js scripts. Since WordPress dropped support for IE, these polyfills are no longer needed and can be removed. Follow-up to [51501]. See #53690. Props aristath. git-svn-id: https://develop.svn.wordpress.org/trunk@52011 602fd350-edb4-49c9-b593-d223f7449a82
With the merging of WordPress/gutenberg#35038 the wp-polyfill is no longer a required dependency for the blocks.
Description
When adding a block with a
view.js
script, the frontend loads an additional ~20kb of scripts that were previously not there. These are coming from polyfills that are defined as a dependency forview.js
scripts.Since WordPress dropped support for IE, these polyfills are no longer needed and can be removed.
This will improve performance and sustainability.
How has this been tested?
Tested with the navigation block in Safari & Firefox, confirmed that everything works both on the frontend and the editor.
Confirmed that the extra assets are no longer loaded on the frontend.
Checklist:
*.native.js
files for terms that need renaming or removal).