• Hello ??

    first of all great plugin. Everything worked like a charme out of the box.

    I have a question: in my shop I have small thumbnail images (ca. 450px), and those sizes are created by cloudflare but the biggest size is requested? It delivers the 2000px size which is rendered down to 450px. Is this expected behavior?

    I user optimole before using this plugin, and there it always requested the exact needed size for a most efficient page load.

    Thanks for having a quick look into it.

    BTW I use aggressive caching so to bypass cache please add ??[random-code]“ to each link you visit eg. https://windmeile.com/shop?hdbdk

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Anton Vanyukov

    (@vanyukov)

    Hi @windmeile,

    The plugin will try to use the size that is set in the width/height attributes for the image. Are you able to adjust those to reflect the required size?

    Also, it seems that there is some conflict. All the images have an incorrect sizes attribute. It is currently set to NaNpx, which looks like an error coming from JavaScript. This will prevent the browser from selecting the correct image size.

    Best regards,
    Anton

    Plugin Author Anton Vanyukov

    (@vanyukov)

    Regarding the sizes issue, I had a look at your JavaScript files and this is where the issue is coming from (theme app.js):

    // Safari srcset
    var safariSrcSet = function(){
        if ( !SiteParameters.is_frontend_editor ) {
            $('html.safari img[sizes]').each(function(){
                var $img = $(this),
                sizeImg = parseInt($img.attr('sizes'));
            if ( typeof(sizeImg) === 'number' ) {
                $img.attr('sizes', (sizeImg) + 'px');
            }
        });
        }
    };
    window.addEventListener('load', safariSrcSet);
    Thread Starter windmeile

    (@windmeile)

    Thank you very much for getting back, Anton. I was able to make it work by activating a setting in my theme:

    Dynamic Srcset: <small>The Dynamic Srcset system creates a list of different responsive images so that browser can pick the most appropriate version based on the actual device’s resolution.</small>

    Thanks for giving me the hint, but it resulted in many admin-ajax.php calls that made my site slow. So I guess its just not compatible with my theme/site or I am just not able to make it work properly. However, I think its a great plugin idea and as mentioned everything else worked flawlessly.

    Last question: I am not able to delete the plugin after deactivation, any idea why? Its just being stuck in “Deleting…” mode on plugin page. Thanks.

    Plugin Author Anton Vanyukov

    (@vanyukov)

    Hi @windmeile,

    I have released a new version that fixes the issues with uninstall.

    Best regards,
    Anton

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Images are offloaded but wrong size is requested’ is closed to new replies.