• Karol

    (@lewshop)


    Hello, why does the option to replace tag from img to picture not work correctly using the option:Only via WordPress hooks (like the_content, the_excerpt, etc) , jpg is still displayed and I would like to use webp. I will add that all images have been optimized and webp has been created. I use Kadence wp and rocketWP and Rocked CDN. This problem also occurs with disabled cache. Only the option: Global (processes the whole output buffer before sending the HTML to the browser) works, but it slows down my site terribly and is incompatible with WP Rocket. Please reply quickly

    The page I need help with: [log in to see the link]

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

    (@petredobrescu)

    Hello @lewshop,

    The two options to deliver next-generation images (like WebP and/or AVIF) are present in our plugin options, because of the differences between websites and the way the images are added to the page source. If most of the images from your website are not present inside the post content (this is usually the case for blogs and news websites), but various plugins are adding the images outside of “the_content” area in WordPress, the solution is to use the Global hook and our plugin will process the entire page source. Indeed, this solution can be slower sometimes, depending on many factors, such as the hosting server resources and the number of images on each page (because our plugin checks which images are present in your uploads folder to prevent broken images).

    However, if you are using a CDN and caching on your website, this slowness should only impact the site for the first time when those pages are generated, because after that, they should be cached and served by WP Rocket and Rocket CDN. Have you also checked your website in an incognito window to check if the slowness is still there?

    Alternatively, I would suggest you to try the CDN delivery from our plugin, it should not have any slow-down effect on your website.

Viewing 1 replies (of 1 total)

The topic ‘Using the tag syntax no working’ is closed to new replies.