Skip to content

Commit

Permalink
load block script only in footer
Browse files Browse the repository at this point in the history
  • Loading branch information
dwaxweiler committed Nov 9, 2024
1 parent e91ca97 commit 0c40efd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/includes/EventsListBlock.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public static function initAndReturnScriptName(): string {
'wp-blocks',
'wp-components',
'wp-i18n'
], '<wordpress-version>');
], '<wordpress-version>', array('in_footer' => true));
register_block_type(NAME . '/events-list', [
'api_version' => 2,
'title' => __('Events List', 'connector-mobilizon'),
Expand Down

0 comments on commit 0c40efd

Please sign in to comment.