diff --git a/functions/misc.php b/functions/misc.php index 4596bc9..385e28c 100755 --- a/functions/misc.php +++ b/functions/misc.php @@ -191,3 +191,13 @@ function the_block_content( $post_id, $echo = true ) { // phpcs:ignore echo $block_content; // phpcs:ignore } // end the_block_content } // end if + +function first_block_load_eager () { + + if ( is_first_block( get_the_ID(), $block ) ) { + echo '
'; + get_picture_element_with_cfcdn( $bg_image, $picture_cdn_args, $picture_cdn_srcset, $loading = 'eager' ); + echo '
'; + + } +}