• Resolved Anonymous User 14978628

    (@anonymized-14978628)


    Hi Stefan,

    I’m having some confusion regarding the selected image sizes which i’m hoping you can clarify for me please.

    My understanding is that by having different image sizes in the srcset, the browser will automatically choose the best size for the display device. So smaller image sizes for smaller screens, and larger sizes for larger screens.

    I have tried to apply this logic to my homepage images by adding sizes for phone, tablet and pc screens based on how the image sizes change responsively for each device (including landscape/portrait orientations). I used the chrome extension “window resizer beta” to determine what these image sizes are.

    This gives me the following sizes which i added to my functions.php

    add_image_size( 'Homepage-iPad-Portrait', 676, 480 );
    add_image_size( 'Homepage-iPad-Portrait@2x', 1352, 960 );
    add_image_size( 'Homepage-iPad-Landscape', 285, 203 );
    add_image_size( 'Homepage-iPad-Landscape@2x', 570, 406 );
    add_image_size( 'Homepage-iPhone6-Portrait', 322, 229 );
    add_image_size( 'Homepage-iPhone6-Portrait@2x', 644, 458 );
    add_image_size( 'Homepage-iPhone6-Landscape', 585, 415 );
    add_image_size( 'Homepage-iPhone6-Landscape@2x', 1170, 830 );
    add_image_size( 'Homepage-iPhone5-Portrait', 273, 194 );
    add_image_size( 'Homepage-iPhone5-Portrait@2x', 546, 388 );
    add_image_size( 'Homepage-iPhone5-Landscape', 496, 352 );
    add_image_size( 'Homepage-iPhone5-Landscape@2x', 992, 704 );
    add_image_size( 'et-builder-portfolio-image@2x', 800, 568 );

    And the code i used for the homepage images was the one you gave before but now including these sizes:

    <a href="<?php echo get_permalink( $post->ID );?>">
                <?php
                $thumbnail_id = get_post_thumbnail_id( $post->ID );
                echo rwp_img( $thumbnail_id, array (
                    'sizes' => array( 'et-builder-portfolio-image@2x', 'Homepage-iPad-Portrait', 'Homepage-iPad-Portrait@2x', 'Homepage-iPad-Landscape', 'Homepage-iPad-Landscape@2x', 'Homepage-iPhone6-Portrait', 'Homepage-iPhone6-Portrait@2x', 'Homepage-iPhone6-Landscape', 'Homepage-iPhone6-Landscape@2x', 'Homepage-iPhone5-Portrait', 'Homepage-iPhone5-Portrait@2x', 'Homepage-iPhone5-Landscape', 'Homepage-iPhone5-Landscape@2x' ),
                ) );
                ?>
                </a>

    The problem i’m having is that when i run Google PageSpeed Insights, it tells me my images need to be optimized. Specifically the larger sized images and retina images.

    I’m confused as to why this is happening as i thought the whole point of having srcset was to be able to display different sized images to different sized screens. So i thought by doing what i’ve done my images would be optimized, but for some reason Google is saying they are not? I have the retina option enabled in Responsify Wp.

    Am i missing something obvious here?

    https://ww.wp.xz.cn/plugins/responsify-wp/

Viewing 15 replies - 46 through 60 (of 76 total)
  • Plugin Author stefanledin

    (@stefanledin)

    Okey, that should rule out that it’s an RWP issue at least.
    What happens if you remove the non retina sizes and only include the retina sizes in the sizes array? I mean, are you sure that the retina sizes actually was displayed and has the correct heights?
    I noticed in your very first post that none of the image sizes is being cropped.

    Thread Starter Anonymous User 14978628

    (@anonymized-14978628)

    ok, i just tried it with retina only images using this:

    <a href="<?php echo get_permalink( $post->ID );?>">
    <?php
    $thumbnail_id = get_post_thumbnail_id( $post->ID );
    $attributes = rwp_attributes( $thumbnail_id, array(
        'element' => 'img',
        'sizes' => array('et-builder-portfolio-image@2x', 'Homepage-Laptop@2x', 'Homepage-Tablet-Landscape@2x', 'Homepage-Tablet-Portrait@2x', 'Homepage-Smartphone-Large-Landscape@2x', 'Homepage-Smartphone-Small-Landscape@2x', 'Homepage-Smartphone-Large-Portrait@2x', 'Homepage-Smartphone-Small-Portrait@2x' )
    ));
    echo '<img data-srcset="'.$attributes['srcset'].'" sizes="(min-width: 1405px) 800px, (min-width: 1100px) 708px, (min-width: 981px) 570px, (min-width: 768px) 1352px, (min-width: 667px) 1170px, (min-width: 480px) 992x, (min-width: 375px) 644px, 546px">';
    ?>
    </a>

    This still produces images with different heights. The functions code i added for this was:

    add_image_size( 'et-builder-portfolio-image@2x', 800, 568, true );
    add_image_size( 'Homepage-Laptop@2x', 708, 504, true );
    add_image_size( 'Homepage-Tablet-Landscape@2x', 570, 406, true );
    add_image_size( 'Homepage-Tablet-Portrait@2x', 1352, 960, true );
    add_image_size( 'Homepage-Smartphone-Large-Landscape@2x', 1170, 830, true );
    add_image_size( 'Homepage-Smartphone-Small-Landscape@2x', 992, 704, true );
    add_image_size( 'Homepage-Smartphone-Large-Portrait@2x', 644, 458, true );
    add_image_size( 'Homepage-Smartphone-Small-Portrait@2x', 546, 388, true );

    Which gives this srcset:

    <img data-srcset="http://localhost/wordpress/wp-content/uploads/2016/07/6-546x388.jpg 546w,
    http://localhost/wordpress/wp-content/uploads/2016/07/6-570x406.jpg 570w, http://localhost/wordpress/wp-content/uploads/2016/07/6-644x458.jpg 644w, http://localhost/wordpress/wp-content/uploads/2016/07/6-708x504.jpg 708w, http://localhost/wordpress/wp-content/uploads/2016/07/6-800x568.jpg 800w" 
    
    sizes="(min-width: 1405px) 800px, (min-width: 1100px) 708px, (min-width: 981px) 570px, (min-width: 768px) 1352px, (min-width: 667px) 1170px, (min-width: 480px) 992x, (min-width: 375px) 644px, 546px" src="http://localhost/wordpress/wp-content/uploads/2016/07/6-800x568.jpg" class="lazy-loaded">

    When i inspect the images in chrome i see:

    402x285 (natural 800x568) - post 6
    402x220 (natural 1170x640) - post 5+4+3+1
    402x259 (natural 992x640) - post 2

    The first set of figures shows the images as i see them displayed. the width is the same, but the height is different. For some reason they are only different when i’m using the retina images.

    I just tried regenerating my images using widthx9999 with cropping, but images still different heights.

    Just tried again using non retina images and images display same height:

    <a href="<?php echo get_permalink( $post->ID );?>">
    <?php
    $thumbnail_id = get_post_thumbnail_id( $post->ID );
    $attributes = rwp_attributes( $thumbnail_id, array(
        'element' => 'img',
        'sizes' => array('et-builder-portfolio-image', 'Homepage-Laptop', 'Homepage-Tablet-Landscape', 'Homepage-Tablet-Portrait', 'Homepage-Smartphone-Large-Landscape', 'Homepage-Smartphone-Small-Landscape', 'Homepage-Smartphone-Large-Portrait', 'Homepage-Smartphone-Small-Portrait' )
    ));
    echo '<img data-srcset="'.$attributes['srcset'].'" sizes="(min-width: 1405px) 400px, (min-width: 1100px) 354px, (min-width: 981px) 285px, (min-width: 768px) 676px, (min-width: 667px) 585px, (min-width: 480px) 496px, (min-width: 375px) 322px, 273px">';
    ?>
    </a>
    Thread Starter Anonymous User 14978628

    (@anonymized-14978628)

    I tried doing retina only with rwg_img and noticed the same image height problem. Retina images are not displaying the same height as non retina images are.

    <a href="<?php echo get_permalink( $post->ID );?>">
    <?php
    $thumbnail_id = get_post_thumbnail_id( $post->ID );
    echo rwp_img( $thumbnail_id, array(
        'sizes' => array('et-builder-portfolio-image@2x', 'Homepage-Laptop@2x', 'Homepage-Tablet-Landscape@2x', 'Homepage-Tablet-Portrait@2x', 'Homepage-Smartphone-Large-Landscape@2x', 'Homepage-Smartphone-Small-Landscape@2x', 'Homepage-Smartphone-Large-Portrait@2x', 'Homepage-Smartphone-Small-Portrait@2x' ),
        'attributes' => array(
            'sizes' => '(min-width: 1405px) 800px, (min-width: 1100px) 708px, (min-width: 981px) 570px, (min-width: 768px) 1352px, (min-width: 667px) 1170px, (min-width: 480px) 992x, (min-width: 375px) 644px, 546px'
        )
    ));
    ?>
    </a>

    I don’t understand why though as i set the retina images to be cropped, so they should display the same as the regular images?

    Thread Starter Anonymous User 14978628

    (@anonymized-14978628)

    Ok, i have determined what the issue is and sort of resolved this problem.

    Basically you were right, it was an issue with the images and not the coding. I used my original template code to try out all the image sizes one by one to see how they affect the homepage images. I found two image sizes that caused the homepage images to display at different heights. Removing those images from the array solved the problem and all my images now display correctly.

    I was just wondering though, why this occurred? The image sizes that were causing the problem should only have been displayed for smartphone viewers, yet having those image sizes in the array somehow also affected the images in desktop view. Do you have any ideas on why this happened?

    As for the images themselves, they were set to be cropped just like the other images, yet for some reason they were behaving differently from the rest?

    In case it’s of any use, here are the results of my testing with ‘error’ meaning the images displayed at different heights when i tested them one by one (so only 1 image size was displayed at a time) and ‘crop’ meaning the images are set to crop:

    extra-image-medium (627 x 376 px) crop
    	-ok
    
    et-builder-portfolio-image (400 x 284) crop
    	-ok
    
    et-builder-portfolio-image@2x (800 x 568) crop
    	-ok
    
    Homepage-Laptop (354 x 252) crop
    	-ok
    
    Homepage-Laptop@2x (708 x 504) crop
    	-ok
    
    Homepage-Tablet-Landscape (285 x 203) crop
    	-ok
    
    Homepage-Tablet-Landscape@2x (570 x 406) crop
    	-ok
    
    Homepage-Tablet-Portrait (676 x 480) crop
    	-ok
    
    Homepage-Tablet-Portrait@2x (1352 x 960) crop
    	<strong>-error</strong>
    
    Homepage-Smartphone-Large-Landscape (585 x 415) crop
    	-ok
    
    Homepage-Smartphone-Large-Landscape@2x (1170 x 830) crop
    	<strong>-error</strong>
    
    Homepage-Smartphone-Small-Landscape (496 x 352) crop
    	-ok
    
    Homepage-Smartphone-Small-Landscape@2x (992 x 704) crop
    	<strong>-error (tiny height difference)</strong>
    
    Homepage-Smartphone-Large-Portrait (322 x 229) crop
    	-ok
    
    Homepage-Smartphone-Large-Portrait@2x (644 x 458) crop
    	-ok
    
    Homepage-Smartphone-Small-Portrait (273 x 194) crop
    	-ok
    
    Homepage-Smartphone-Small-Portrait@2x (546 x 388) crop
    	-ok

    images different heights when these sizes present in the array

    'Homepage-Smartphone-Large-Landscape@2x',
    'Homepage-Smartphone-Small-Landscape@2x',

    And the functions.php code i added to create these image sizes:

    add_image_size( 'et-builder-portfolio-image@2x', 800, 568, true );
    add_image_size( 'Homepage-Laptop', 354, 252, true );
    add_image_size( 'Homepage-Laptop@2x', 708, 504, true );
    add_image_size( 'Homepage-Tablet-Portrait', 676, 480, true );
    add_image_size( 'Homepage-Tablet-Portrait@2x', 1352, 960, true );
    add_image_size( 'Homepage-Tablet-Landscape', 285, 203, true );
    add_image_size( 'Homepage-Tablet-Landscape@2x', 570, 406, true );
    add_image_size( 'Homepage-Smartphone-Large-Portrait', 322, 229, true );
    add_image_size( 'Homepage-Smartphone-Large-Portrait@2x', 644, 458, true );
    add_image_size( 'Homepage-Smartphone-Large-Landscape', 585, 415, true );
    add_image_size( 'Homepage-Smartphone-Large-Landscape@2x', 1170, 830, true );
    add_image_size( 'Homepage-Smartphone-Small-Portrait', 273, 194, true );
    add_image_size( 'Homepage-Smartphone-Small-Portrait@2x', 546, 388, true );
    add_image_size( 'Homepage-Smartphone-Small-Landscape', 496, 352, true );
    add_image_size( 'Homepage-Smartphone-Small-Landscape@2x', 992, 704, true );

    Does anything stick out as being odd or incorrect which would have caused this issue?

    Thread Starter Anonymous User 14978628

    (@anonymized-14978628)

    Update:

    Ok, so after some more testing i’m beginning to suspect that the rwp_attributes code isn’t outputting my sizes correctly which may explain the previous issues and confusion i was trying to resolve. I am currently testing with non retina sizes only.

    With rwp_img, when i inspect an image in chrome for desktop size i get 402×285 (natural 400×284). The natural size corresponds to the size i set for 1405px breakpoint which is et-builder-portfolio-image (400 x 284) which is determined by this part of my code:

    'sizes' => '(min-width: 1405px) 400px,

    Ok, so that works as expected.

    But with the rwp_attributes code, when i inspect an image for desktop size i get 402×285 (natural 676 x 480). Now this is unexpected because the natural size corresponds to the size i set for the 768px breakpoint which is Homepage-Tablet-Portrait (676 x 480) which is determined by this part of my code:

    (min-width: 768px) 676px

    The srcset for this however looks correct:

    <img data-srcset="http://localhost/wordpress/wp-content/uploads/2016/07/6-273x194.jpg 273w,
    http://localhost/wordpress/wp-content/uploads/2016/07/6-285x203.jpg 285w, http://localhost/wordpress/wp-content/uploads/2016/07/6-322x229.jpg 322w, http://localhost/wordpress/wp-content/uploads/2016/07/6-354x252.jpg 354w, http://localhost/wordpress/wp-content/uploads/2016/07/6-400x284.jpg 400w, http://localhost/wordpress/wp-content/uploads/2016/07/6-496x352.jpg 496w, http://localhost/wordpress/wp-content/uploads/2016/07/6-585x415.jpg 585w, http://localhost/wordpress/wp-content/uploads/2016/07/6-676x480.jpg 676w" 
    
    sizes="(min-width: 1405px) 400px, (min-width: 1100px) 354px, (min-width: 981px) 285px, (min-width: 768px) 676px, (min-width: 667px) 585px, (min-width: 480px) 496px, (min-width: 375px) 322px, 273px" src="http://localhost/wordpress/wp-content/uploads/2016/07/6-676x480.jpg" class="lazy-loaded">

    When i hover over this line that’s when i see 402×285 (natural 676×480)

    src="http://localhost/wordpress/wp-content/uploads/2016/07/6-676x480.jpg" class="lazy-loaded"

    Basically, what i am finding is that with rwp_img, when i do desktop, laptop, and tablet landscape views, the displayed image size matches the natural size. In other words, the size i see on the screen is the actual size of that image. It’s the image size i created for that viewpoint.

    But with rwp_attributes, the displayed image size doesn’t match the natural size. It seems to be using a larger image for that viewpoint than it should be.

    I have tried to demonstrate this below. The first image dimensions are what is outputted with rwp_img vs. the image dimensions outputted with rwp_attributes.

    Desktop - 402x285 (natural 399x284) vs. 402x285 (natural 676x480)
    Laptop - 354x252 (natural 354x251) vs. 354x252 (natural 676x480)
    Tablet Landscape - 285x203 (natural 285x202) vs. 285x203 (natural 676x480)

    I have updated my live test site with rwp_attributes http://www.celebrityhealthcritic.com/

    Plugin Author stefanledin

    (@stefanledin)

    I’m out on a trip right now so I haven’t completely wrapped my head around everything, but as I understand it, the srcset looks fine for both rwp_img() and rwp_attributes() and the sizes attribute is the same?
    Maybe it’s the lazy load script that doesn’t select the correct image?

    You could try and replace data-srcset with srcset when using rwp_attributes(). The markup should be exactly the same as when you’re using rwp_img() then.

    Or, you could try this:

    <a href="<?php echo get_permalink( $post->ID );?>">
    <?php
    $thumbnail_id = get_post_thumbnail_id( $post->ID );
    $img = rwp_img( $thumbnail_id, array(
        'sizes' => array('et-builder-portfolio-image@2x', 'Homepage-Laptop@2x', 'Homepage-Tablet-Landscape@2x', 'Homepage-Tablet-Portrait@2x', 'Homepage-Smartphone-Large-Landscape@2x', 'Homepage-Smartphone-Small-Landscape@2x', 'Homepage-Smartphone-Large-Portrait@2x', 'Homepage-Smartphone-Small-Portrait@2x' ),
        'attributes' => array(
            'sizes' => '(min-width: 1405px) 800px, (min-width: 1100px) 708px, (min-width: 981px) 570px, (min-width: 768px) 1352px, (min-width: 667px) 1170px, (min-width: 480px) 992x, (min-width: 375px) 644px, 546px'
        )
    ));
    echo str_replace('srcset', 'data-srcset', $img);
    ?>
    </a>
    Thread Starter Anonymous User 14978628

    (@anonymized-14978628)

    Thanks Stefan, will be working on this issue today and will try as you suggested.

    Please enjoy your trip and get some rest and relaxation!

    Thread Starter Anonymous User 14978628

    (@anonymized-14978628)

    Update:

    I appear to have got this working!

    I tried another plugin (a3 lazy load) and it worked with the rwp-attributes code. When inspecting images i see the on screen image size and the natural image size is correct. So i can see it is using the image sizes i created for the different viewpoints. For some reason, as you suggested, the previous lazy load script wasn’t selecting the correct image.

    Thread Starter Anonymous User 14978628

    (@anonymized-14978628)

    Hi Stefan,

    I’m having a slight issue with my images that appears to be some kind of compatibility problem with your plugin.

    I’m using the a3 lazy load plugin and this works great with the rwp_attributes code i manually inserted into my theme. The images lazyload, and they have the correct media queries i entered. This is all fine.

    The problem is with the images that are inserted in a post. Those inserted with the wordpress visual editor.

    When RWP is activated it outputs the srcset data for that image as it’s suppose to. But when i activate the lazy load plugin, that srcset data disappears and i’m just left with the following:

    <img class="size-medium wp-image-42 aligncenter lazy-loaded" src="http://localhost/wordpress/wp-content/uploads/2016/07/6-828x558.jpg" data-lazy-type="image" data-src="http://localhost/wordpress/wp-content/uploads/2016/07/6-828x558.jpg" alt="6" width="828" height="558">

    The images lazy load, but they no longer have the srcset data from RWP! However, that data does still seem to be there as i see the following below the image in a noscript tag:

    <noscript>
    <img src="http://localhost/wordpress/wp-content/uploads/2016/07/2-150x150.jpg" srcset="http://localhost/wordpress/wp-content/uploads/2016/07/2-150x150.jpg 150w, http://localhost/wordpress/wp-content/uploads/2016/07/2-400x284.jpg 400w, http://localhost/wordpress/wp-content/uploads/2016/07/2-440x264.jpg 440w, http://localhost/wordpress/wp-content/uploads/2016/07/2-627x376.jpg 627w, http://localhost/wordpress/wp-content/uploads/2016/07/2-768x480.jpg 768w, http://localhost/wordpress/wp-content/uploads/2016/07/2-828x518.jpg 828w" sizes="(min-width: 768px) 828px, (min-width: 627px) 768px, (min-width: 440px) 627px, (min-width: 400px) 440px, (min-width: 150px) 400px, 150px" class="size-medium wp-image-38 aligncenter" alt="2" width="828" height="518">
    </noscript>

    I’m not sure quite what to do about this as these images are inserted by wordpress, so i’m not manually using a custom code to display those images.

    Strangely enough, RWP and a3 lazy load work perfectly together with the custom code you provided, but not without that code. So i’m wondering if there’s any sort of tweak you can make to RWP to make this work natively with a3 lazy load? As it’s like RWP is not being recognised properly with whatever default code it’s outputting. But it does get recognised properly with the rwp_attributes custom code.

    Thread Starter Anonymous User 14978628

    (@anonymized-14978628)

    Just seen this post which answered my question. Another user was having the same problem as me:

    https://ww.wp.xz.cn/support/topic/i-dont-understand-how-to-make-lazy-load-work

    Stefan, have you given any further thought to creating a lazy load plugin that’s compatible with RWP? This would be a godsend for users like me who don’t want to part with RWP but also want all images to lazy load.

    Thread Starter Anonymous User 14978628

    (@anonymized-14978628)

    Update:

    Ok, so after a lot of trial and error i managed to get lazy load working without a plugin as you describe on your website with Lazy Load XT jquery.

    This however, resulted in replicating the exact same issue i had when i installed this plugin (https://ww.wp.xz.cn/plugins/lazy-load-xt/). Whereby the natural image size is larger than the image size specified in my media queries.

    So it seems like that plugin is essentially the same as setting up Lazy Load XT jquery manually. They both produce the same result, just the plugin sets everything up automatically for you.

    Interestingly, when i use the a3 lazy load plugin, i get the correct natural image size for images i inserted using the rwp_attributes code. So this works perfectly.

    The trouble is, for images inserted in a post, a3 lazy load makes images lazy load, but leaves out the srcset which RWP would normally add.

    So what i’m wondering, is it possible to disable RWP for images inserted in a post? Because when i disable RWP plugin, a3 lazy load uses the native wordpress srcset. Which would be ok as i always had srcset added to post images automatically, it was just my other images i needed RWP for.

    I have tried unchecking “use on thumbnails and content” in RWP, and also choosing to ignore all image formats in RWP, but this still results in post images not having srcset added to them when a3 lazy load is active. It’s only when i actually disable RWP plugin, that a3 lazy load uses the native wordpress srcset. So just choosing to ignore the images in RWP doesn’t seem to work for some reason?

    Plugin Author stefanledin

    (@stefanledin)

    Okey, back from vacation now!

    So it seems like that plugin is essentially the same as setting up Lazy Load XT jquery manually. They both produce the same result, just the plugin sets everything up automatically for you.

    Yeah that’s exactly what happens.

    The trouble is, for images inserted in a post, a3 lazy load makes images lazy load, but leaves out the srcset which RWP would normally add.

    Sound like a conflict.

    It’s only when i actually disable RWP plugin, that a3 lazy load uses the native wordpress srcset. So just choosing to ignore the images in RWP doesn’t seem to work for some reason?

    When RWP is activated, it disables the native implementation of responsive images. This will happen even if you deactivates it on thumbnails and content.

    As I understand it, your problems comes down to Lazy Load XT loading the wrong image from the srcset?
    I haven’t tried the plugin myself since I implement it on my own. But it needs an addon in order to work with srcset.
    That addon seems to be included in the Lazy Load XT plugin, but maybe there’s a setting for it?

    Stefan, have you given any further thought to creating a lazy load plugin that’s compatible with RWP?

    I’d prefer not to. At least not an official one. Maybe I could throw something together and send you, it’s quite easy really. But I would use Lazy Load XT in that case and that maybe won’t work for you?
    A3 Lazy Load might do something a bit different, but it also says on the plugin description page that it’s inspired/based on Lazy Load XT.

    Thread Starter Anonymous User 14978628

    (@anonymized-14978628)

    Hi Stefan, hope you had a nice vacation.

    Yeah, if you don’t mind putting together a plugin you could send it to me using the address on the following page (http://www.celebrityhealthcritic.com/test-post-7/), thanks.

    It would be interesting to see if i get different results to what i had setup manually. The images were outputting srcset with my manual installation, although they may not have been doing so correctly due to the addon you mentioned. Worth a shot i guess.

    Could you just clarify something for me also please? I noticed on your demo website (http://responsifywp.com/demo/) the first image shows its dimensions as 888×592 when i inspect with chrome. But the natural size shown in chrome is 1944×1296. Your media query specifies this as (min-width: 1280px) 1944px.

    I was just wondering why such a large image size (1944×1296) is being used for a smaller space (888×592). I think before you said you haven’t included retina images, so i’m just curious if there was a specific reason for this i’m overlooking, or you just left it as is because this is a demo page?

    Plugin Author stefanledin

    (@stefanledin)

    But the natural size shown in chrome is 1944×1296. Your media query specifies this as (min-width: 1280px) 1944px.

    Yes, if the screen is at least 1280px, the 1944 image should be used. This could of course be tweaked since the column is smaller, but it’s the default behavior I’m demonstrating on that page.

    Plugin Author stefanledin

    (@stefanledin)

    I’ve sent you an addon now. I understand your struggle with the retina images now. I’ve spent the whole forenoon trying to make Lazy Load XT select the retina image.
    Using only RWP, without lazy loading, the retina version is selected as expected. But when I turn on lazy loading, the regular version is selected.
    The same happens with the Lazy Load XT plugin, but not with A3 Lazy Load. That’s strange since A3 is based on exactly the same scripts. I’ve tried to find what A3 does differently without success so far.

    The addon I sent you has this problem, but it makes all images lazy load at least.

Viewing 15 replies - 46 through 60 (of 76 total)

The topic ‘Selecting Image Size’ is closed to new replies.