webp lazyload CLS issue
-
I’m using Autoptimize’s LazySize. When I directly upload a WebP file to the media library and display it in an article, the placeholder size does not correspond to the width/height of the img tag. This causes a CLS issue.
<img class="wp-image-259775 ls-is-cached lazyload" src="https://sample.com/wp-content/uploads/2025/01/content_image_6-719x1024.webp" data-src="https://sample.com/wp-content/uploads/2025/01/content_image_6-719x1024.webp" width="719" height="1024" data-srcset="https://sample.com/wp-content/uploads/2025/01/content_image_6.webp 926w, 211w, https://sample.com/wp-content/uploads/2025/01/content_image_6-719x1024.webp 719w, 768w" srcset="https://sample.com/wp-content/uploads/2025/01/content_image_6.webp 926w, 211w, https://sample.com/wp-content/uploads/2025/01/content_image_6-719x1024.webp 719w, 768w">
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.