Skip to content

Commit

Permalink
First commit, T-17629
Browse files Browse the repository at this point in the history
  • Loading branch information
ottotiitinen committed Sep 20, 2024
1 parent 3386be9 commit f3a9fb9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions functions/misc.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 '<div class="default-image">';
get_picture_element_with_cfcdn( $bg_image, $picture_cdn_args, $picture_cdn_srcset, $loading = 'eager' );
echo '</div>';

}
}

0 comments on commit f3a9fb9

Please sign in to comment.