Double downloading?
-
I’m getting double downloads at screen sizes except the largest. My DevTools Network tab tells me that the image size I specify as the largest needed (‘article-top-large’) is always delivered, along with the smaller version for that viewport size.
Can anyone spot anything I’m doing wrong?
Template code
<?php $img_src = wp_get_attachment_url(get_post_thumbnail_id()); ?> <img class="image__img" src="<?php echo $img_src; ?>" <?php echo tevkori_get_src_sizes( 179421, 'article-top-large' ); ?> />
Resulting markup
<img class="image__img" src="https://elit.dev/wp-content/uploads/2015/01/taylor.jpg" srcset=" https://elit.dev/wp-content/uploads/2015/01/taylor-160x107.jpg 160w, https://elit.dev/wp-content/uploads/2015/01/taylor-235x157.jpg 235w, https://elit.dev/wp-content/uploads/2015/01/taylor-653x435.jpg 653w, https://elit.dev/wp-content/uploads/2015/01/taylor-930x620.jpg 930w, https://elit.dev/wp-content/uploads/2015/01/taylor-620x413.jpg 620w, https://elit.dev/wp-content/uploads/2015/01/taylor-413x275.jpg 413w, https://elit.dev/wp-content/uploads/2015/01/taylor-992x661.jpg 992w, https://elit.dev/wp-content/uploads/2015/01/taylor.jpg 992w " />
https://www.ads-software.com/plugins/ricg-responsive-images/
Viewing 12 replies - 1 through 12 (of 12 total)
Viewing 12 replies - 1 through 12 (of 12 total)
- The topic ‘Double downloading?’ is closed to new replies.