Wrong srcset loaded
-
We have this image loaded
<div id="attachment_5118" style="width: 211px" class="wp-caption alignright">
<img decoding="async" aria-describedby="caption-attachment-5118"
class="wp-image-5118 size-medium"
title="Michael Madsen deelt hoe Caminito del Rey tickets te komen"
src="https://autentical.nl/wp-content/webp-express/webp-images/doc-root/wp-content/uploads/sites/42/2018/10/MMM_billed-201x300.jpg.webp"
alt="Michael Madsen deelt hoe Caminito del Rey tickets te komen"
width="201" height="300"
srcset="https://autentical.nl/wp-content/webp-express/webp-images/doc-root/wp-content/uploads/sites/42/2018/10/MMM_billed-201x300.jpg.webp 201w,
https://autentical.nl/wp-content/webp-express/webp-images/doc-root/wp-content/uploads/sites/42/2018/10/MMM_billed-686x1024.jpg.webp 686w,
https://autentical.nl/wp-content/webp-express/webp-images/doc-root/wp-content/uploads/sites/42/2018/10/MMM_billed-603x900.jpg.webp 603w,
https://autentical.nl/wp-content/webp-express/webp-images/doc-root/wp-content/uploads/sites/42/2018/10/MMM_billed.jpg.webp 702w"
sizes="(max-width: 201px) 100vw,201px">
<p id="caption-attachment-5118" class="wp-caption-text"><a >Michael Madsen</a> deelt hoe Caminito del Rey tickets te komen</p></div>somehow the 603px x 900px image is loaded for mobile as well as the full size image. This 603 x 900 is also is not a size we added. We have these sizes:
add_theme_support('post-thumbnails');
add_image_size('base_hotel_img_slideshow', 770, 500, true);
add_image_size('base_hotel_img_slideshow_large', 1200, 600, true);
add_image_size('base_hotel_img_slideshow_home', 1800, 800, true);
add_image_size('base_hotel_img_slideshow_home_large', 2000, 1100, true);
add_image_size('base_hotel_img_special_banner', 1200, 400, true);
add_image_size('base_hotel_img_special_sidebar', 380, 250, true);
add_image_size('base_hotel_img_room_thumb', 380, 380, true);
add_image_size('base_hotel_img_gallery', 900, 900);and WordPress just adds standard 300px times 300px for medium sized images.
We also do not add the 201 for width and 300 for height for images. So it seems WebP ExPress is generating this for the image.
we need not load the formats
https://autentical.nl/wp-content/webp-express/webp-images/doc-root/wp-content/uploads/sites/42/2020/01/caminito-del-rey-cliffside_red.jpg.webp
https://autentical.nl/wp-content/webp-express/webp-images/doc-root/wp-content/uploads/sites/42/2018/10/MMM_billed-603x900.jpg.webpon mobile . We only need
https://autentical.nl/wp-content/webp-express/webp-images/doc-root/wp-content/uploads/sites/42/2018/10/MMM_billed-201x300.jpg.webp
Page Speed loads the full sized image it seems https://pagespeed.web.dev/analysis/https-autentical-nl-hoe-krijg-je-kaartjes-voor-de-caminito-del-rey/ncvn4o6mmz?form_factor=mobile , but browser for sure loads the 603×900 one.
- This topic was modified 2 months, 3 weeks ago by .
- This topic was modified 2 months, 3 weeks ago by .
- This topic was modified 2 months, 3 weeks ago by .
The page I need help with: [log in to see the link]
- You must be logged in to reply to this topic.