Changeset 49861
- Timestamp:
- 12/21/2020 06:49:22 PM (4 years ago)
- Location:
- branches/5.6
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.6
-
branches/5.6/src/wp-content/themes/twentytwentyone/inc/template-tags.php
r49829 r49861 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.