load block script only in footer

This commit is contained in:
Daniel Waxweiler 2024-11-09 22:32:53 +01:00
parent e91ca97e88
commit 0c40efd565
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ class EventsListBlock {
'wp-blocks', 'wp-blocks',
'wp-components', 'wp-components',
'wp-i18n' 'wp-i18n'
], '<wordpress-version>'); ], '<wordpress-version>', array('in_footer' => true));
register_block_type(NAME . '/events-list', [ register_block_type(NAME . '/events-list', [
'api_version' => 2, 'api_version' => 2,
'title' => __('Events List', 'connector-mobilizon'), 'title' => __('Events List', 'connector-mobilizon'),