
Tagged: CLS
-
AuthorPosts
-
July 31, 2025 at 10:33 am #1487411
Hello Enfold Team,
I have CLS issue on my first color section (on all of my main pages).
I have managed to fix the issue, but when I realized that my design is not looking good on IpadPro, I have added a second color section with a media query only between 1024-1025Px. Since then the CLS issue is back and I can´t find a solution.
Can you please have a look what I am doing wrong?Best regards,
ChristopherAugust 1, 2025 at 6:34 am #1487445Hey Rastoffarai,
Thank you for the inquiry.
This is the image causing the LCP issue: photovoltaik-anlage-fockenbrock-elektrotechnik-2560×1707-01.jpg.
It is currently 2560×1707 pixels, which is quite large. Consider resizing it to half that size or smaller (1024x683px), and make sure all site images are properly compressed. You can use optimization plugins like ShortPixel or Imagify for this.
After resizing and compressing the images, use the following plugin to preload the “photovoltaik-anlage-fockenbrock-elektrotechnik” image.
— https://wordpress.org/plugins/preload-lcp-image/
Let us know if the LCP issue continues.
Best regards,
IsmaelAugust 1, 2025 at 11:51 am #1487460Hey Ismael
Thank you very much for your reply.
The LCP issue is gone, that was the next thing on my list :-)
My main concern is the CLS issue on desktop. Managed to fix it with 100vh height (i think) but since I have added the media query to have a different color section for IpadPro I can´t get rid of the bad CLS score. The 100vh solution makes the dektop version higher then 100vh and I am running out of ideas.My CSS regarding this color sections: /* Color section container width and height */ /* DESKTOP */ .cjs-titel-keil-container .container { width: 100% !important; min-width: 100%; min-height: 80vh; padding: 0; margin-right: -1px; magin-top: -1px; } @media only screen and (min-width: 1025px) { .cjs-titel-keil-container-ipadpro { display:none !important; } } /* IPADPRO */ .cjs-titel-keil-container-ipadpro .container { width: 100% !important; min-width: 100%; padding: 0px; margin-right: -1px; magin-top: -1px; } @media only screen and (max-width: 1024px) { .cjs-titel-keil-container { display:none !important; } }
Thank you for your Help
Best regards,
ChristopherAugust 2, 2025 at 3:23 pm #1487498Hey Ismael
could not wait :-)
I had an idea and finally managed to fix my CLS issue.
My problem was: A color section as backround with rows inside produces a CLS issue i could not get rit off.My solution: I used one color section as backround image with min-heigt and the svg overlay i had in a row is now a second color section positioned absolute over the first color section. Now I am only switching the overlay with media querys. This is CLS error free.
The LCP issue persists, the preloading of my largest contet wasn´t helping.
/* Color section container width and height CLS Fix */ /* DESKTOP */ .cjs-titel-keil-desktop-cls { position: absolute; top: 80px; left: 0; width: 100%; height: calc(100vh - 78px); } @media only screen and (min-width: 1025px) { .cjs-titel-keil-ipadpro-cls { display: none; } } /* IPADPRO */ .cjs-titel-keil-ipadpro-cls { position: absolute; top: 80px; left: 0; width: 100%; height: calc(100vh - 78px); } @media only screen and (max-width: 1024px) { .cjs-titel-keil-desktop-cls { display: none; } }
Best regards,
ChristopherAugust 4, 2025 at 7:20 am #1487542Hi,
Thank you for the update.
The image home_backround-keil.svg is not being preloaded when we check the site, and its file size is still at 96.5 kB, which is relatively large for mobile view. Regardless, the performance score on mobile is now 91, and 95 on desktop. Have you tried using the Preload LCP Image plugin?
Best regards,
IsmaelAugust 5, 2025 at 12:21 am #1487576Hi Ismael,
I am very happy with the Pagespeed Score since the CLS issue is solved!
I am only curious where the LCP issue is coming from. Is it possible that is has something to do with the max height of my Backround image construct?
The Preload LCP Image Plugin is installed and seems to be working fine.PageSpeeed Insights says here is the problem:
<div id="av_section_7" class="avia-section av-1dccl-bef4804921c9cf0151d6be20e4d3ac5b main_color avia-sec…" data-section-bg-repeat="stretch" data-av_minimum_height_pc="80" data-av_min_height_opt="percent" style="">
but this is the section under the header image.
Any Idea what I am missing? I don´t think the image sizes are the cause. I build Enfold pages with larger backround images without getting LCP issues.
Thanks you for your help and I have to say I love your Theme – created a few sites with it and will use it again and again !
Best regards,
ChristopherAugust 5, 2025 at 6:47 am #1487583Hi,
As mentioned in our previous replies, the LCP issue is caused by the home_background-keil.svg image or the first section. You’ll need to either reduce the size of the section or background image, or replace it entirely for mobile view.
After you installed the Preload LCP Image plugin, did you select the images to preload? Currently, home_background-keil.svg is not being preloaded. Reducing the file size of the image should also help — currently at 96.5 KB.
Best regards,
IsmaelAugust 5, 2025 at 9:45 am #1487594Hi Ismael,
Thank you for your quick reply.
I did select the the images to preload via the LCP image plugin.
In your first reply you wrote me: photovoltaik-anlage-fockenbrock-elektrotechnik-2560×1707-01.jpg. is the problem.
home_background-keil.svg is a ovelay image! I can only preload one Image with LCP plugin.
The filesize can´t be the Problem, i have tried way bigger on a page without my overlay and it is not causing LCP.
With a tiny 20kb it is the same Problem.Can you please have a closer look either on my page oder in my CSS what might cause the problem other then image size or where I messed up with the height?
Thank you for your help
ChristopherAugust 11, 2025 at 5:12 am #1487824Hi,
Yes, both the background image and the overlay image contribute to the LCP. While the report flags the background image as the main culprit, any unoptimized images or content on the page can affect loading speed and directly impact the LCP.
Currently, home_backround-keil-mobile.svg is still quite large for mobile view at 96 KB. We recommend either removing it completely from the #av_section_7 section or removing the duplicates of this section completely, keeping only one version for both mobile and desktop views.
Please note that images in these sections still affect the page’s performance, even if they are hidden on mobile view. The minified resources generated by the plugin WPFC also affect the page rendering. Try temporarily disabling the plugin and make sure the Enfold > Performance > File Compression settings are disabled as well.
Let us know if this makes any difference.
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.