Hi, I have created a basic metabox and have tested adding a title field. When I go to test it on the front end of the website I get loads of HTTP requests for JS/CSS files.
This is my basic metabox block...
add_filter( 'rwmb_meta_boxes', function( $meta_boxes ) {
$meta_boxes[] = [
'title' => 'Hero Content',
'id' => 'hero-content',
'description' => 'A custom hero content block',
'type' => 'block',
'icon' => 'awards',
'category' => 'layout',
'context' => 'side',
'render_template' => get_template_directory() . '/blocks/hero/template.php',
'supports' => [
'align' => ['wide', 'full'],
],
// Block fields.
'fields' => [
[
'type' => 'text',
'id' => 'title',
'name' => 'Title',
],
],
];
return $meta_boxes;
} );
Then I create a new page in WordPress and just include the test block above...

Then when I visit the front end of the site. I see all of the following http requests. I do not need any of these CSS/JS files. I assume the http requests would only include dependencies I have specified in the block settings? or that are required for the block to work in the front end?

Thanks