[wp-meta] [Making WordPress.org] #6770: Don't enqueue zxcvbn.min.js when not needed
Making WordPress.org
noreply at wordpress.org
Tue Feb 21 04:40:07 UTC 2023
#6770: Don't enqueue zxcvbn.min.js when not needed
-----------------------------+-----------------------
Reporter: jonoaldersonwp | Owner: (none)
Type: defect (bug) | Status: reopened
Priority: high | Milestone:
Component: General | Resolution:
Keywords: seo performance |
-----------------------------+-----------------------
Comment (by dd32):
I've submitted a Gutenberg PR which resolves this:
https://github.com/WordPress/gutenberg/pull/48268
In the meantime, Adding this code appears to work around it:
{{{
remove_filter( 'block_type_metadata',
'gutenberg_block_type_metadata_multiple_view_scripts' );
remove_filter( 'block_type_metadata_settings',
'gutenberg_block_type_metadata_view_script', 10, 2 );
}}}
As we're running WordPress 6.1, the `viewScript` functionality should be
provided by core, so these filters shouldn't technically be needed, but
I'm not 100% sure..
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/6770#comment:5>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list