missing srcset and sizes attributes
-
Hello guys,
I decided to write here after searching a lot a solution on the internet (including this forum and documentation section). After testing my self hosted WordPress site speed with two browsers (Chrome and Firefox), I noticed that some posts contain several image tags without srcset and sizes attributes. As browsers display, only the full or scaled sizes are downloaded which affects badly my site performance (especially on mobile version).
I don’t know why some images are served properly and other not. I checked the upload folder location and all images are generated accordingly with multiple sizes (e.g thumbnail, medium, medium-large, large).
Other details:
– WP version is 5.5;
– I use my custom theme where I set “wp_calculate_image_sizes” hook within functions.php file based on screen width.
– running plug-ins – JetPack, YoastHope it helps.
Thanks for trying to support me!
The topic ‘missing srcset and sizes attributes’ is closed to new replies.