Skip to content

Commit 62cf5d7

Browse files
committed
fix: dynamic breakpoints were not added correctly if styles are loaded early
1 parent 3d08227 commit 62cf5d7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/init.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,9 @@ public function load_frontend_scripts_conditionally_head() {
159159
stripos( $post->post_content, '<!-- wp:stackable/' ) !== false ||
160160
stripos( $post->post_content, 'stk-highlight' ) !== false
161161
) {
162-
// Enqueue our main css.
163-
$this->register_frontend_assets();
164-
wp_enqueue_style( 'ugb-style-css' );
162+
// Enqueue our main scripts and styles.
163+
$this->block_enqueue_frontend_assets();
164+
$this->is_main_script_loaded = true;
165165
}
166166
}
167167
}

0 commit comments

Comments
 (0)