• Resolved Tuppa

    (@my2424u)


    Hi, under image optimization I have Image Webp replacement turned ON. Webp images are shown everywhere on my site except on the single product page. I haven’t changed anything under the default settings of “Webp attribute to be replaced”. I think my issue has to do with specifying element atribute to be replaced with Webp. I dont know what to add there to get my images on single product page to be replaced with Webp. Kindly help as this is brain-wrecking for me but Im sure with your skills this is a peice of cake… Can you let me know what do I need to put in “WebP Attribute To Replace” box so I can get my Webp images to be shown as single product image as well…

    Report number: VMGFIFOY

    By the way, have a bless New Years day to you and your family…

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Support qtwrk

    (@qtwrk)

    Hi,

    happy new year to you too

    I checked one of your product page, I can see most iamges are webp’ed

    only few images are due to either webp not exist, or loaded by javascript are not webp’ed.

    LSCWP can reliably detect and replace images in HTML tag, but if iamges are loaded by CSS or JS , it may not be able to detect and replce

    Best regards,

    Thread Starter Tuppa

    (@my2424u)

    The issue I have is that for instance… On the homepage of my website there is the image of men’s camouflage jeans… That image is webp … I click that product and now Im in the single product page… When I right click the image of that same product its show jpeg… I am using “Product Gallery Slider for Woocommerce”… I think my issue has to do with specifying element atribute to be replaced with Webp. I just dont know how to find the element so I can add it to “Webp attribute to be replaced”

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    yeah , that’s normal , one of my site got this same issue

    the image is loaded by JS , LSCWP may not be able to detect/replace when image is loaded by JS

    since you are not using any CDN , here is a little workaround

    add it into top of your .htaccess

    RewriteCond %{HTTP_ACCEPT} "image/webp"
    RewriteCond %{REQUEST_FILENAME}.webp -f
    RewriteRule ^(.*).(jpg|jpeg|png|gif) $1.$2.webp [T=image/webp,L]

    this will force to load webp , though the URL will remain same , but under the hood the format is webp file.

    best regards,

    Thread Starter Tuppa

    (@my2424u)

    I am adding quic.cloud cdn to my website now as we speak… I had cloudflare but was told quic.cloud is better… Will that still work? Or with quic.cloud set up I will need to do something else

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    based on my test, it works , but please do double check

    Best regards,

    Thread Starter Tuppa

    (@my2424u)

    Ok will do…

    Thread Starter Tuppa

    (@my2424u)

    I just realize that my website isnt be cache from litespeed… I just check response header and its showing x-litespeed-cache missed

    Plugin Support qtwrk

    (@qtwrk)

    on first access, it could be normal , repeat it and check it again

    Thread Starter Tuppa

    (@my2424u)

    5 refreshes in and same thing…

    Plugin Support qtwrk

    (@qtwrk)

    yeah , check the other topic you made , I posted a guide there to track purge call

    Thread Starter Tuppa

    (@my2424u)

    Ok checking now thanks… I think its because I have my manager addign products to the site so maybe everytime a new product is added litespeed automatically purges… I tried it just now and got hit this time…

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Webp Images’ is closed to new replies.