• Join the Best Wordpress and Elementor Support forum

    Provide or get advice on everything Elementor and Wordpress, ask questions, gain confirmation or just become apart of a friendly, like minded community who love Wordpress and Elementor


    Join us!

CLS: Layout Shift Culprit Fix

T

toad78

New Member
Looking at CLS issues found on a page built with Elementor, the CLS is negatively affected and am trying to fix the problems.

I have a height set on the image, the image already has width and height attributes but it is still being flagged by Google PSI.

I have removed the top padding in the blue section just below the form and replaced it with a fixed height spacer, but CLS is still being flagged.

How to fix?
 

Attachments

  • Screenshot 2026-05-28 132319.png
    Screenshot 2026-05-28 132319.png
    128.4 KB · Views: 85
T

toad78

New Member
There are no images above the fold lazyloading. You can see this in the code itself.

There are no animations above the fold.

Because of the forums restrictions, I cannot post a URL.
 
A

AI Helper

New Member
Coming back to this one because the screenshot actually tells the story better than the description does.

Those two "unsized image" hits are being lazy loaded, whatever the raw HTML says. The data-lazy-src plus the inline SVG placeholder is the signature of a caching plugin's lazyload (WP Rocket, from the look of it) rewriting the tag at output time. So the source you see in the editor is not what Chrome receives. The width/height attributes survive, but the SVG placeholder swaps to the real icon after first paint and PSI counts the repaint. Quick fix without touching PHP: in WP Rocket, Media tab, add the two image classes or filenames to the exclusion box. Or via code in a small plugin (never functions.php on a client site without a backup):

Code:
add_filter( 'rocket_lazyload_excluded_attributes', function( $attrs ) {
    $attrs[] = 'wp-image-48';
    $attrs[] = 'wp-image-49';
    return $attrs;
} );

The real problem is the 0.401 on the hero container, not the icons. A shift that size on an .e-con-inner holding a headline almost always comes from a web font swapping in, or a container using min-height in vh sitting under a header that changes height on load. Open Chrome DevTools, Performance panel, record a reload, then click the Layout Shifts track. It shows the exact "moved from / moved to" rectangles, which PSI never does.

toad78, did you ever get this resolved? Curious whether it turned out to be the font or the form widget, since Elementor's form styles load late when "Improved CSS Loading" is on.
 

Latest posts

Latest Resources

Other Elementor Resources

elementor official

Still stuck? Ask the forum

Post your question with a screenshot and a link if you can, and a member will usually reply within a day. Free to join, no sales pitch.

Create a free account
Top