Site logo

[Support request] Free WebP-Plugin that works fine with GenerataPress

Home Forums Support [Support request] Free WebP-Plugin that works fine with GenerataPress

Home Forums Support Free WebP-Plugin that works fine with GenerataPress

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #2497193
    Tom

    Hello, do you know a free WebP-Plugin that works fine with GenerataPress?

    In the PageSpeed Test my Mobile Speed could need some fixing, the Computer-Speed is always very good.

    #2497308
    David
    Staff
    Customer Support

    Hi there,

    if you’re looking for a plugin to convert images to webP then i believe they require a premium subscription.

    if you want to improve the current image loading performance, try adding this PHP Snippet to your site:

    function db_modify_srcset_sizes($sizes, $size) {
            $sizes = '(max-width: 360px) 300px, (min-width: 361px) 768px, (min-width: 769px) 1024px, 100vw';
    	return $sizes;
    }
    add_filter('wp_calculate_image_sizes', 'db_modify_srcset_sizes', 10 , 2);

    It will tell the browser to load the medium size image on mobile devices instead of the full size image.
    Make sure to clear any caches afterwards.

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