Viewing 30 posts - 1 through 30 (of 103 total)
  • Author
    Posts
  • #1439141

    When I have a fallback image selected for a video clip, it causes my google pagespeed insights performance score to drop to 50-65, but only on mobile devices. The images are all optimized from MB to kb.

    When I remove the image, and just let the player show a black box with the play button in the middle, my performance score on mobile devices jumps back into the 90s.

    Is the fall back image using the original MB image whereas it should be using an optimized image?

    #1439154

    Hey gatehealing,

    Thank you for the inquiry.

    Where can we check the issue? Please provide the site URL in the private field. Are you using an image compression plugin?

    Best regards,
    Ismael

    #1439240

    Yes, I am using compression plugins. WP-Optimize. I had issues with Short Pixel.
    See private field. I put an image back in there and it goes up and down from 55 to 70’s (pagespeed).

    J

    #1439251

    Hi,

    Thank you for the info.

    What happens when you disable the Enfold > Performance > File Compression settings? The score decreases because the video image can’t be rendered without the compressed stylesheets, resulting in a significant delay in rendering the largest content element on the page.

    Best regards,
    Ismael

    #1439432

    Doing that causes it to be slower because nothing is compressed at all.

    #1439433

    Tried that and this time it did not slow it down, but it did not speed it up either.

    Also, this is only on Mobile devices. My desktop performance score on pagespeed insights is 99 (never below 95), so I cannot help but think this is something related to code involved in making this sized for mobile?

    #1439452

    Hi,

    Thank you for the update.

    Have you tried selecting a smaller version of the fallback image? You can also try disabling the fallback image, then adding this css code:

    .avia-video.av-lmimicjt-91daf7b4836eb5d08b70627ca6104059 {
      background-image: url(https://gatehealing.com/wp-content/uploads/Counseling-Austin-Office-Jonathan-F-Anderson-LPC-s-845x684.jpg);
    }

    You might want to adjust the size of 845×684 in the image URL to load a smaller version of the image.

    Best regards,
    Ismael

    #1439459

    When I go smaller, it stretches it and makes it look fuzzy. I have a handful of pages that have videos at the top . . . each fall back image is specific to the page.

    #1439528

    https://pagespeed.web.dev/analysis/https-gatehealing-com-counseling-austin-tx/ap2oii2fxu?form_factor=mobile

    There are things on this that look like enabling Enfold’s compression/merging should fix. This is still just the mobile site. I don’t know if the “eliminate render blocking resources” is related to the mobile image thing or not . . . but it seems that this should not be a thing?

    #1439548

    Hi,

    The site above is currently unavailable when we checked. It redirects to a default “Site Not Found” page hosted by Dreamhost. Is the site down? Please provide the login details in the private field so that we can do additional testing.

    Thank you for your patience.

    Best regards,
    Ismael

    #1439549

    I’m setting up the staging site at (see private box) . . . my host told me I needed to add some DNS records to get that working, and when I did it looks like it broke my site.

    I deleted those DNS records, so it should be up now.
    Thank you for letting me know!
    J

    #1439550

    They had given me the wrong dns settings for the new staging site. They are correct now, and site should be up.

    #1439551

    oh, login is now in private box

    #1439552

    did y’all re-disable the Enfold Child compression/merging? No problem if so, I just want to know if I need to turn it back on or not. My homepage performance (no videos) is suffering a bit. . . usually in the upper 90’s, now low 80’s. I can wait if y’all are testing though. Just let me know.

    J

    #1439553

    Hi,

    We just logged in to the site and noticed that the size of the fallback image (see private field) is overly large (4032x3024px), around 3MB. Even after compression, the size is still 551.97 KB, which is still large for an image of that size and aspect ratio. Please resize the image to around 1920x1080px, then upload it again. If you can run the image through an image compression tool before uploading, you should expect a much better result. Uploading a pre-compressed and resized image will result in thumbnails with much smaller file sizes.

    The file was compressed from 3.08 MB to 551.97 KB, saving 82.52 percent, using WP-Optimize
    

    Online image compression tools:

    // https://imagecompressor.com/
    // https://compressjpeg.com/

    Best regards,
    Ismael

    #1439555

    this is very unusual for a wordpress media library. Because upload got a default big image limitation to 2540px.
    Have you turned of the limitation by:
    add_filter( 'big_image_size_threshold', '__return_false' );

    but you are right even with the scaled image of 2540px – it will be too big.

    #1439607

    Can you suggest a free compression app for a macbook pro? Should I compress it, then upload it, then let a compression plugin re-compress the compressed engine? Or get rid of the compression plugin?

    I think this may mean deleting all of my images then re-uploading them if this is an issue?
    J

    #1439634

    Hi,

    You don’t really need to compress the images prior to uploading, but it will help a lot if you could resize the image to an optimal size before uploading them, for example, 1920x1080px. Resizing the images before uploading will result in smaller thumbnails in terms of file size. If you want to manually compress the images after resizing, please check the online tools that we linked above. You can test it first with the video thumbnail to see if you get a better result.

    Best regards,
    Ismael

    #1440731

    Ok, on the page in the private box, the fallback image is 56kb. The original image size was 1151×1200, and then the optimizer created scaled images, which I would assume are smaller than the original.

    I am having the same issue where this fallback image is the Largest Contentful Paint element. Load and Render delays seem to be the biggest time eaters.

    The other time eater listed is Main Thread Work, with Script Evaluation taking up the largest amount of time by itself (though the other 6 times in there add up to more than that).

    I must be missing something. I completely re-uploaded all of my images to bring down some file sizes just as a precaution (some were 5MB before compression). Now even the largest are only kb’s.

    This is still only on mobile devices. What am I missing about mobile load times? Is there a mobile setting somewhere that I can tweak? I’ve looked through and just don’t see anything that would directly relate to the mobile images served up.

    With Enfold > Performance > Compression/merging features turned on, the mobile performance score hovers around 65 (desktop stays around 95). I tried turning them off, then turning on those features in WPFC, the score seems to go down for mobile.

    #1440755

    Hi,

    We came across another thread with a similar issue, and it was resolved by disabling lazy loading and preloading the image.

    To preload the image, you can add the following code to the functions.php file:

    function ava_preload_image_in_wp_head()
    {
        $image_url = 'https://gatehealing.com/wp-content/uploads/IMG_9494-845x684.jpeg';
        $mime_type = 'image/jpeg';
        $image_handle = 'counseling-services';
        echo ' 	<link rel="preload" href="' . esc_url($image_url) . '" as="image" type="' . esc_attr($mime_type) . '" id="' . esc_attr($image_handle) . '">';
    }
    add_action('wp_head', 'ava_preload_image_in_wp_head');
    

    You can also try this plugin: https://wordpress.org/plugins/preload-lcp-image/#installation

    Best regards,
    Ismael

    #1440759

    Does disabling Lazy Load in Enfold Child options disable all of the element boxes that have it enabled? Or do I have to go manually disable it in all sliders/image boxes that have it enabled?

    Jon

    #1440881

    Also, the code provided only preloads that one image. This mobile speed issue is occurring on all pages across my website.

    Dream Host suggested I use Ewww Image Optimization and the companion plugin Easy Image Optimization. All images have allegedly been converted to webp format, and I do see this in the source code, but when I use the inspection tool from developer tools (in firefox) and point at an image, it looks like images are not lazy loaded, and are lazy loaded all on the same line of code.

    I’m at a loss.

    #1440889

    Hi,

    We’ve installed the preload-lcp-image plugin and configured it to preload the video image, which fixed a few of the audits, but there are still a lot of items remaining on the list. One that stood out is the “Properly size images”, which means that other images on the page may need resizing. Another is “Defer offscreen images”, which can be resolved by enabling lazy loading for images beyond the fold. We’ve enabled lazy loading for images globally, but you can manually toggle it for the first image on the page if necessary.

    Additionally, consider experimenting with a different caching plugin like WP Rocket to see if you can gain any improvements. The following articles should also help:

    // https://kriesi.at/archives/scoring-100-100-in-google-pagespeed-insights-gtmetrix-pagespeed-and-yslow
    // https://gtmetrix.com/wordpress-optimization-guide.html

    Best regards,
    Ismael

    #1440897

    That plugin only works if I go in on each and every page and post on my site (over 100 posts and 20ish pages) and manually configure it for every single one of them.

    The issue I am having is site wide, across all pages…sadly I have realized that it is not just the video fallback images. It’s everything everywhere.

    I’m also working with my host to troubleshoot this. I don’t know who to listen to. It’ll take me a bit to pick through the various plugins suggested by each side, and to experiment with the various combinations and permutations of everything.

    #1440899

    apparently using that plugin still leaves that /counseling-austin-tx/ page in the 60’s for mobile on pagespeedinsights. . . except for this test run where it’s a 49: https://pagespeed.web.dev/analysis/https-gatehealing-com-counseling-austin-tx/0f6id1jpcj?form_factor=mobile

    #1440903

    Hi,

    apparently using that plugin still leaves that /counseling-austin-tx/ page in the 60’s for mobile on pagespeedinsights.

    Yes, it won’t address every performance issue, but it should improve LCP. Have you done any performance optimizations on the site beyond the recommendations provided here and in the articles we shared above?

    That plugin only works if I go in on each and every page and post on my site (over 100 posts and 20ish pages) and manually configure it for every single one of them.

    Yes, it has to be done manually for each page. Let us know if using a different cache plugin helps.

    For additional help regarding site optimization, you might want to consider hiring a freelance developer. You can contact our partner, Codeable.

    // https://kriesi.at/contact/customization

    Best regards,
    Ismael

    #1440905

    If Lazy Load doesn’t work on your theme and a plugin or custom css has to be used to fix the problem, then I may need to find a different theme. I hate the idea of rebuilding from the ground up, but having to use a bunch of bandaids via plugins and custom code does not seem to be efficient and may be causing part of the problem.

    #1440908

    Hey!

    Lazy loading functions properly in the theme. Enabling this option globally resolved the “Defer offscreen images” issue as mentioned above. You may need to resize your images and make sure they are not wider than 1920px, similar to the previous one.

    It’s common to add css modifications and install plugins, especially if you’re aiming for specific features, layouts, or designs, even with a different theme.

    Have you tried a different caching plugin?

    Best regards,
    Ismael

    #1440909

    Hey!

    Although this score may not appear favorable and the audits report some issues, the site still loads quickly on both mobile devices and desktop view based on our checks. I’m not implying that these issues should be ignored or left as they are, but rather that the site continues to function and load at a reasonable speed. The issue with the LCP should not significantly affect the user experience.

    Best regards,
    Ismael

    #1440911

    Images have all been resized, optimized and converted to webp. All images have a bunch of different sizes that were all optimized in the process as well.

    One of the Ewww or Easy IO plugin optimizers has a setting where it makes certain that no images are larger than 1920 for either Height or Width.

    My host apparently has a caching feature, but there was an error enabling it, so I am waiting to hear back from them on this.

    One of the pagespeed insights errors regarding reducing server response time references having a lot of plugins and a theme that may not be well optimized.

    I think there may be some weird thing happening where enabling Lazy Load may help the defer off screen images, but it creates issues in other places. Thus my confusion.

    I’ll be trying a different caching plugin tomorrow. I’m cross-eyed tonight.

Viewing 30 posts - 1 through 30 (of 103 total)
  • The topic ‘Video fallback image causing enormous performance issues on mobile devices.’ is closed to new replies.