Changeset 49860
- Timestamp:
- 12/21/2020 06:37:47 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentytwentyone/inc/template-tags.php
r49826 r49860 191 191 <figure class="post-thumbnail"> 192 192 <?php 193 // Thumbnail is loaded eagerly because it's going to be in the viewport immediately.194 the_post_thumbnail( 'post-thumbnail', array( 'loading' => 'eager') );193 // Lazy-loading attributes should be skipped for thumbnails since they are immediately in the viewport. 194 the_post_thumbnail( 'post-thumbnail', array( 'loading' => false ) ); 195 195 ?> 196 196 <?php if ( wp_get_attachment_caption( get_post_thumbnail_id() ) ) : ?>
Note: See TracChangeset
for help on using the changeset viewer.