Fix the enqueue function
-
Installing the plugin loads ~40 scripts from wp-includes on every page load, due to the dependencies in
gs_pin_gutenberg_boilerplate_block()
function.The issue is in the hook
add_action( 'enqueue_block_assets', 'gs_pin_gutenberg_boilerplate_block' );
Please change to
add_action( 'enqueue_block_editor_assets', 'gs_pin_gutenberg_boilerplate_block' );
so it’s loaded only in the Gutenberg Editor.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Fix the enqueue function’ is closed to new replies.