From 9d3c1f0437173a343a8ee3d65b82b36b0fb2d9d1 Mon Sep 17 00:00:00 2001 From: James Amner Date: Tue, 3 Dec 2024 10:53:50 +0000 Subject: [PATCH] [FIX] Prevent unneceassary JS loading in the frontend --- packages/iconography/includes/IconographyService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/iconography/includes/IconographyService.php b/packages/iconography/includes/IconographyService.php index c23292b..f1b5854 100644 --- a/packages/iconography/includes/IconographyService.php +++ b/packages/iconography/includes/IconographyService.php @@ -33,7 +33,7 @@ public function init(): void { add_action( 'wp_enqueue_scripts', array( $this, 'register_assets' ) ); add_action( 'wp_footer', array( $this, 'enqueue_assets' ), 1, 0 ); add_action( 'enqueue_block_assets', array( $this, 'register_assets' ), 1, 0 ); - add_action( 'enqueue_block_assets', array( $this, 'enqueue_editor_scripts' ) ); + add_action( 'enqueue_block_editor_assets', array( $this, 'enqueue_editor_scripts' ) ); add_action( 'enqueue_block_assets', array( $this, 'enqueue_all_assets' ) ); }