• Resolved T4ng

    (@schwipps)


    Hi there,

    It looks like this plugin doesn’t take advantage of srcset’s builtin WordPress Support. Is there any plan or solution to implement it ?

    Thanks !

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Archetyped

    (@archetyped)

    Hi, the scrset attribute is added to image elements on the page, so it does not really come into play with SLB, which acts upon links on a page.

    Can you provide more details on the specific type of functionality you would like to see?

    Thanks.

    Thread Starter T4ng

    (@schwipps)

    Hi,

    May be there is something wrong with my blog then, because the pictures embedded through the lightbox are always the biggest one, on any screen it’s displayed, either on the homepage or posts. Therefore, these pictures are heavy, and take ages to dowload.

    When I have a look to the html, the image is only described by the , without scrset attribute. Is in a normal behaviour ?

    Thanks

    Plugin Author Archetyped

    (@archetyped)

    Hi, WordPress should add the srcset and sizes attributes to image elements in posts automatically unless your theme (or a plugin) has blocked it for some reason.

    I would recommend temporarily activating a default theme (such as Twenty-Seventeen) to see if your theme is not compatible with WordPress’ responsive image functionality. You may also need to disable plugins to determine if they are blocking this functionality.

    Thread Starter T4ng

    (@schwipps)

    Hi, thanks for your support. I am already using Twenty Seventeen theme.
    I also did what you suggested, de-activating all plugins besides Simple Lightbox, with no more luck.

    Then, I thought about looking for another website using Simple Lightbox, then simply went to your website, and realized it didn’t feature what I was looking for either.

    Maybe I didn’t explained it properly, so let me reformulate : I expect an image displayed in a Lightbox to be integrated with these srcset/size attributes, so that it loads an optimized image based on the screen size, instead of the heavy original one to be reduced by the browser. It’s a waste of bandwith.

    In my opinion, loading the full size image kind of makes sense with the initial WordPress behaviour (<=> on a dedicated page) because then it offers the ability to display it fullsize, whatever the screen is. In a lightbox, that fullsize function is not available, so there is no further hope to exploit such a big image (besides may be downloading it).

    Plugin Author Archetyped

    (@archetyped)

    Ah, you want srcset to be used for the image displayed in the lightbox? WordPress’ built-in srcset behavior does not apply here, so I was confused by your original request.

    Nonetheless, responsive support for images displayed in the lightbox is planned.

    Thanks ??

    Thread Starter T4ng

    (@schwipps)

    Awesome! ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘srcset support’ is closed to new replies.