• Resolved JJulien

    (@scabuster)


    Hello Patrick, all,

    I generated a static site from KadenceWP theme, its responsive.
    I have the page break width to change from desktop size to tablet/mobile size at 1024px. I have page width set to narrow 800px. I have set my default image sizes in wordpress settings to be 700×700, 450×450, 300×300.

    In the static site generated, when viewed on a mobile phone, indeed the images look like they are supposed to on the screen. Yet, when i open the image in a new tab, or if i download the image, i always get the maximum image size, 700×700.

    My question:
    Does the static site utilize the smaller images from the responsive wordpress theme, as grouped in the index.html file as srcset images, or does it only scale the one largest image, for all device sizes?

    The implications are, that on mobile devices, they are downloading the largest file. This doesn’t take advantage of faster page loading times on mobile devices downloading smaller images.

    Please let me know how it works and what to expect, and what options I have.

    Thank you,
    Scabuster

    Scabuster

Viewing 1 replies (of 1 total)
  • Plugin Author patrickposner

    (@patrickposner)

    Hey @scabuster,

    thanks for your detailed report!

    Simply Static should support the responsive image implementation of WordPress. It will take a look at the srcset attribute and provides the correct size for the correct viewport.

    I will have a closer look at this again and created an issue for that right here: https://github.com/patrickposner/simply-static/issues/49

    The implementation is quite old, so it’s worth checking everything is still working correctly.

    Best regards,
    Patrick

Viewing 1 replies (of 1 total)
  • The topic ‘Are responsive image sizes used?’ is closed to new replies.