Viewing 15 replies - 1 through 15 (of 28 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    for LCP you’ll have to exclude the main image from being lazyloaded, you can try excluding by using one of these classed maybe; post-thumbnail or size-post-thumbnail or wp-post-image? When succesfull this should also improve the CLS.

    hope this helps,
    frank

    Thread Starter zo

    (@zotezo)

    Hi,
    Not solved still showing LCP above 4 and CLS above 0.1
    Please look once https://www.zotezo.com/in/medicines/rifaxigyl-m-200mg-400mg-tablet/
    Also showing one error Serve images in next-gen formats related to UM profile images like wp-content/uploads/sites/2/ultimatemember/1/profile_photo.png?1600643528
    How to resolve those?
    Thanks

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Looks like the image is being redirected from Shortpixel back to your site, causing delay in it loading.

    Re. “next-gen formats”; you could use e.g. “webp express” plugin for that?

    Thread Starter zo

    (@zotezo)

    Hi,

    Looks like the image is being redirected from Shortpixel back to your site, causing delay in it loading.

    So what is the solution can you please investigate once? I am loosing core web vitals rank daily due to this medicine page(maximum number in my site).

    Re. “next-gen formats”; you could use e.g. “webp express” plugin for that?

    Already using shortpixel with AO any other suggested Plugins?
    Thanks

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    -> disable “image optimization” in AO or add credits
    -> AO+SP only do webp if lazyload is also done in AO, but you use a3 lazyload
    -> other suggested plugin is “webp express” ??

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    wp-content/uploads/sites/2/ultimatemember/1/profile_photo.png?1600643528

    -> the fact those ultimatemember images have that random-ish string at the end (the ?1600643528) is likely eating away at your shortpixel credits, you might want to see if you can turn that off (or ask ultimate member how to do so).

    Thread Starter zo

    (@zotezo)

    Hi,
    I have excluded gravatar avatar avatar-100 um-avatar um-avatar-uploaded class from a3 lazy load from exclusion list now still LCP score above 5 and CLS score is also high.

    Can I exclude it wp-content/uploads/sites/2/ultimatemember/1/profile_photo.png?1600643528 from short pixel CDN optimizations so that it will not exceed the short pixel quota?
    can you please specify for the issue with UM profile images what exactly needs to add on function.php?
    add_filter(‘autoptimize_filter_imgopt_noptimize’,’imgopt_excl’);
    function imgopt_excl() {
    return ‘some-image.png, another-image.jpg’;
    }
    Thanks

    Thread Starter zo

    (@zotezo)

    Kindly provide me the best solution to solve LCP and CLS issue in my medicine page..

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    LCP is a moving target Zo; if you check the detailed info on GPSI you’ll see your LCP is now for a different element:

    No idea why that is now highlighted or how to improve that I’m afraid.

    Re. excluding the ultimate-member profile picture, try this one maybe;

    add_filter('autoptimize_filter_imgopt_noptimize','imgopt_excl_um_avatar');
    function imgopt_excl_um_avatar() {
    return 'profile_photo.png';
    }
    Thread Starter zo

    (@zotezo)

    Hi,
    As we are using short pixel CDN Paid service so this LCP issue should not happen related to images.Let me clear what is the other way to reduce LCP/CLS rank on the medicine page only?
    I want the same page rank like other pages,kindly share me the solution please..

    the fact those ultimatemember images have that random-ish string at the end (the ?1600643528) is likely eating away at your shortpixel credits

    They have sent me this code-

    function my_user_avatar_url( $avatar_uri ) {
    $url = preg_replace('/\?.*/', '', $avatar_uri);
    
    return $url;
    }

    removing the dynamic string is enough to protect from eating away at our shortpixel credits?
    Thanks

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    as you can see in the screenshot I added the LCP issue is not for an image now, but for a paragraph, which means the LCP *might* be due to wait time for a font to download?

    removing the dynamic string is enough to protect from eating away at our shortpixel credits?

    yes, although I think there’s a line missing there (an add_filter)?

    Thread Starter zo

    (@zotezo)

    the fact those ultimatemember images have that random-ish string at the end (the ?1600643528) is likely eating away at your shortpixel credits, you might want to see if you can turn that off (or ask ultimate member how to do so).

    Done. Hope the Credit issue will solve?

    I added the LCP issue is not for an image now, but for a paragraph, which means the LCP *might* be due to wait time for a font to download?

    Please let me how can I solve that? What font issue please specify.
    Thanks

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Done. Hope the Credit issue will solve?

    well, when viewing HTML source, are the query parameters in the <img src’es gone now?

    Please let me how can I solve that? What font issue please specify.

    I don’t know Zo ??

    Thread Starter zo

    (@zotezo)

    well, when viewing HTML source, are the query parameters in the <img src’es gone now?

    https://www.zotezo.com/in/wp-content/uploads/ultimatemember/93502/profile_photo-190×190.jpg
    https://www.zotezo.com/in/wp-content/uploads/sites/2/ultimatemember/14/profile_photo.png

    Will you consider after purchasing short pixel CDN this issue will resolve?

    What is the other way to increase LCP/CLS score in medicine page?
    Thanks

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    re. query parameters; looks good

    re. lcp/ cls: I don’t know Zo.

Viewing 15 replies - 1 through 15 (of 28 total)
  • The topic ‘High LCP and CLS score in medicine page (post)’ is closed to new replies.