Hey guy I wanted to share some of my data which I gathered when I was optimizing my blog back in 2021, these settings still work the best for most blogs, forums and business websites may differ.
If you're looking to fix the website CLS/LCP issues with some kind of WordPress plugin? Then you have come to the right place, as I have used over 40 different plugins on my blog and came up with the best optimization plugin.
I also had bad experience and issues with Google AdSense ADS, slowing down your website, and also forcing or causing bad CLS/LCP issues. This was also fixed with this plugin by displaying the ads after user interaction, reducing the website paint time, and reducing the CLS, page load time and improving the ranks.
When the ADS load after the website has fully loaded, this will speed up the website, also using this in combination with JavaScript optimizations, CSS compress and other website cache optimizations, I have noticed huge shifts with website speed and website SEO optimization.
Before we look into how to fix the CLS/LCP issues, let's have a look at what CLS/LCP/ actually mean below.
CLS stands for cumulative layout shift
If you are not aware of what CLS is, it's a ranking factor used by google page speed, google basically calculates a shift in the design of your websites such as images, text, buttons, or any visible web objects.
CLS will be used as a ranking feature by Google, therefore it's important for you to rank well for this.
2025 Update: Please note that his feature was highly valued back in 2021, but in 2025, I have been seeing websites with huge CLS and CLA issues rank better than websites which don't have any issues at all. Which makes me wonder did google roll out some kind of override algorithm?
I can't really answer this, since it really left me baffled, but anyway, I will continue with this topic, as this cache and SEO optimization plugin will work wonders in speeding up your blog website.
LCP (Largest Content Paint)
LCP is what is used to calculate the total loading time of your website. Meaning, Google Ads will significantly slow down your website's loading time, resulting in larger LCP values. Have a closer look at Google page speed results below without using any "delay JavaScript execution" plugins.
As you can see above, highlighted in red this was my average results for this page for the last 30 days and the new text which is highlighted in green shows current stats.
Total elimination is almost 1sec in LCP and 0.36sec of CLS which is enough to help our website go from rank 60 to 90 a huge +30 points to website rankings!
There have been many users who have been experiencing CLS or LCP issues, but simply had no idea how to fix this!
Drum roll, please!
Behold guys! I would like to introduce this 1 plugin that will help you eliminate both LCP and CLS issues inside of WordPress!
I would like to introduce wp-rocket, which is quite strangely a caching plugin but has special optimization algorithm and SEO features that will help you eliminate both CLS and LCP issues!
So how does WP-rocket eliminate CLS and LCP issues?
Well, let's just say that in the new wp-rocket plugin update, there is a new feature called "delay JavaScript execution".
As you can see from the screenshot below;
You might be asking yourself, what does "delay JavaScript execution" do?
Delay JavaScript execution simply manages to stop all JavaScript from loading on your website. This delay will simply last until the end-users or customers interact with the mouse/keyboard. Which will activate the paint feature to continue, and load all the JavaScript.
Soon as there is a user interaction detected, the website will simply continue to load the rest of the delayed JavaScript files. These scripts can be added simply on a new line in the input box.
This feature is used by many popular and advanced blogs with tons of users each month, it's to speed up the website.
And since the ADS load after the website has finished loading, this is totally fine since the ads Google Ads are now async, this is why you have probably been seeing many bloggers and web developers using this JavaScript delay function.
Now when the JavaScript delay execution is not used, the ads will load as the website is loading, prolonging the page load, as well as causing commutative shifts on the website, since the ads are being loaded and moving into position.
I have been using this feature for many years, and it has been working wonders, I was inspired to use this feature as I have seen many of my competitors using such features.
And it makes sense, also 3rd party Google ADS partners such as mediavine, ezoic all have such JavaScript delay in placed inside the algorithm, meaning no extra work needs to be done by the webmaster or blog owner, making life even easier.
This is what the text includes as a placeholder inside "Delay JavaScript Execution";
getbutton.io //a.omappapi.com/app/js/api.min.js feedbackcompany.com/includes/widgets/feedback-company-widget.min.js snap.licdn.com/li.lms-analytics/insight.min.js static.ads-twitter.com/uwt.js platform.twitter.com/widgets.js twq( /sdk.js#xfbml static.leadpages.net/leadbars/current/embed.js translate.google.com/translate_a/element.js widget.manychat.com xfbml.customerchat.js static.hotjar.com/c/hotjar- smartsuppchat.com/loader.js grecaptcha.execute Tawk_API shareaholic sharethis simple-share-buttons-adder addtoany font-awesome wpdiscuz cookie-law-info pinit.js /gtag/js gtag( /gtm.js /gtm- fbevents.js fbq( google-analytics.com/analytics.js ga( ' ga(' adsbygoogle.js ShopifyBuy widget.trustpilot.com/bootstrap ft.sdk.min.js apps.elfsight.com/p/platform.js livechatinc.com/tracking.js LiveChatWidget /busting/facebook-tracking/ olark pixel-caffeine/build/frontend.js
Guys, have you got or have experienced issues with Google ADS from causing LCP to slow down or shift issues in the Google page speed test?
Are you experiencing slow loading time or large CLS shifts caused by Google ADS?
Then try in the WordPress WP-Rocket plugin, simply under "delay JavaScript execution" add these 2 lines of code into the list;
/pagead/js/adsbygoogle.js pagead2.googlesyndication.com/pagead/js/adsbygoogle.js
And there you go!
It's simple as that!
Soon as you enable the caching plugin, make sure you flush your cache, and you should see some instant results in removing and eliminating CLS/LCP webpage issues!
Please note that your ads will be loaded as page loads, this is simply great news, meaning, it will result in much higher and faster page loading/speed times.
The interaction of the user's keyboard or mouse will also enable all "delayed JavaScript" to be loaded instantly.
Download: WP-rocket
(This is a paid WordPress plugin, but once you purchase the plugin you can use it for lifetime, just without any developers updates, I would recommend getting subscription every 2/3 years to update the plugin). As I have had subscription for 3 years and not much has changed, all the same features, just few extras.
Hope this plugin will help you fix your SEO optimization issues, let me know below if you need any advice.