• Resolved you456

    (@you456)


    Hello

    if i active Media Types to all some images disappear from my page, if i inspect i am getting the below code

    if i unselect png option it will work https://imgur.com/0hk7seX

    check attachment:

    • This topic was modified 5 years, 7 months ago by you456.
Viewing 14 replies - 1 through 14 (of 14 total)
  • Thread Starter you456

    (@you456)

    data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==

    Hi @you456,

    This is the placeholder that is used before the image is lazy loaded. The original image should replace the empty one, once loaded. During this process you should be seeing a loading icon. Could you please post a link to your site, so I can check the issue?

    Best regards,
    Anton

    Thread Starter you456

    (@you456)

    check

    • This reply was modified 5 years, 7 months ago by you456.

    @you456,

    Could you please try to do the following. In the Smush plugin folder in core/modules/class-wp-smush-lazy-load.php replace this code on line 232:
    $this->add_attribute( $new_image, 'class', $class );
    with:

    $this->remove_attribute( $new_image, 'class' );
    $this->add_attribute( $new_image, 'class', $class );

    Best regards,
    Anton

    Thread Starter you456

    (@you456)

    added, still same issue

    @you456,

    It looks all good on my end. Please clear the browser cache and test again.

    Best regards,
    Anton

    Thread Starter you456

    (@you456)

    ok. its works. what is the issue ? can you please explain?

    For some reason the class on the image is not being added. With the fix, you are forcefully removing the current empty class and replacing it with the correct one. In order to add a proper fix in the next release, could you please try to disable lazy loading and share the original HTML code for any image. I want to see what attributes are set for the image tag.

    Best regards,
    Anton

    Thread Starter you456

    (@you456)

    Thank you

    • This reply was modified 5 years, 7 months ago by you456.

    Hi @you456,

    You can’t control expiry headers for resources that are located on external hosts.

    Best regards,
    Anton

    Thread Starter you456

    (@you456)

    OK i will disable the lazy load and let you know as soon as. once again thank you so much!

    Thread Starter you456

    (@you456)

    hello

    some images load slow with fade effect, can you tell me how can i load images fast with no effects?

    @you456,

    In the settings you can either set a 0 fade in effect, or use a loading icon.

    Best regards,
    Anton

    Hello @you456

    Hope you’re doing well!

    We’ve not heard from you in a while. I’ve marked this ticket as resolved for now, but if you need anything else at all, we’re here for you, please just reopen the ticket or create a new one.

    Have a good day and take care!

    Cheers,
    Nastia

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Issue with plugin’ is closed to new replies.