load block script only in footer
This commit is contained in:
parent
e91ca97e88
commit
0c40efd565
|
@ -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'),
|
||||||
|
|
Loading…
Reference in New Issue