Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1461077

    Hello Enfold Team,

    My site, https://iceworksus.com, is not scoring well despite only having two small images on the home page. I asked the SiteGrounds support team to take a look, and as a result, we updated to the latest PHP version and uninstalled a few plug-ins, but the problem persists. They mentioned that I should ask you all to take a look at the CLS element of the report as it didn’t “look right” to them.

    <div id=”av_section_1″ class=”avia-section av-h4ap-dca29bbfa23d090095a1760e56edd8d6 main_color avia-sect…” data-section-bg-repeat=”stretch” data-av_minimum_height_pc=”95″ data-av_min_height_opt=”percent” style=””>

    Can you please take a look and let me know what you would recommend?

    Thank you.

    #1461405

    Hey James,

    Thank you for the inquiry.

    The CLS is actually good, but the overall score on mobile is a bit low because of LCP (Largest Contentful Paint), which is related to the background image (Custom-Ice-Background.webp) in the first color section. We recommend reducing the size of the image to 1440px or lower and installing a compression plugin before uploading it back as the background.

    You can also enable lazy loading in the Enfold > Performance > Responsive Images And Lazy Loading panel, then add this code in the functions.php file to preload the image.

    function ava_preload_image_in_wp_head()
    {
        $image_url = 'https://iceworksus.com/wp-content/uploads/2024/02/Custom-Ice-Background.webp';
        $mime_type = 'image/jpeg';
        $image_handle = 'custom-ice-machine';
        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');
    

    Best regards,
    Ismael

    #1461724

    Hi Ismael,

    Thank you for your help. I have done all that you suggested, but unfortunately, it hasn’t helped. Also, the file in question is only 32KB in size so I don’t know how this is the problem???

    -James

    #1461750

    Hi,

    Thank you for the update.

    Also, the file in question is only 32KB in size so I don’t know how this is the problem

    Apparently, 32KB is still considered large for mobile by the pagespeed insight tool, so you need to reduce the size of the image. Have you done any speed optimization for the site, such as installing a caching and image compression plugin? If not, please check the links below and follow the steps.

    // 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

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