[Resolved] Serving Device Specific Images

Home Forums Support [Resolved] Serving Device Specific Images

Home Forums Support Serving Device Specific Images

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2283305
    Ian

    I am using GP Pro and GB Pro on this new site. When I run Pagespeed or Webpagetest, I see reports indicating that on mobile, the tests are serving smaller-sized images than on for desktop. Is GP, GB or WordPress core now controlling this? I do have AVIF enabled through Shortpixel, not sure if this contributes to this behaviour. Any thoughts?

    #2283310
    Fernando
    Customer Support

    Hi Ian,

    By default, WordPress controls the image sizes, not GeneratePress or GenerateBlocks.

    In GenerateBlocks, you can set the Image size specific to a view, but the image size is only altered through CSS. The srcset or the image served should still be controlled by WordPress.

    Hope this clarifies!

    #2285508
    Ian

    Thank you. Given that WordPress does control this, I guess there is finally a use for the smaller media sets! By the way, when did this start happening? I was not aware of this and always thought you had to rely on a CDN to serve varying sizes. Thanks!

    #2285557
    Fernando
    Customer Support

    You’re welcome Ian!

    It was added in WordPress 4.4. See here for reference: https://developer.wordpress.org/apis/handbook/responsive-images/

    Hope this clarifies!

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.