[Support request] Web performance decrease when Google Adsense code is added

Home Forums Support [Support request] Web performance decrease when Google Adsense code is added

Home Forums Support Web performance decrease when Google Adsense code is added

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1618852
    Daniel Fernández Sánchez

    Hello, when I install Google Adsense code in a wp-head hook or in the header.php itself, without even activating the ads, the performance of my website drops considerably due to an excess of javascript code. Is there any way to avoid this, since the website goes from a score of 100 on a cell phone to scores that vary between 50 and 80.

    As you indicate, all the plugins, I have, have been deactivated, including one cache plugin, so the origin of the problem should not be in the other plugins. The website that I use for the tests is ratiostellar.com
    The code that I have inserted is this:
    <script data-ad-client=”ca-pub-blablabla” async src=”https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js”></script&gt;

    I hope you help me as much as you can, thanks.

    #1618855
    Daniel Fernández Sánchez
    #1618899
    Leo
    Staff
    Customer Support

    Hi there,

    If you need to use the ad then I don’t believe so.

    The theme itself cannot do anything to improve the performance of third party scripts like Google ads.

    You could try if using Autopimize would help a bit?
    https://docs.generatepress.com/article/configuring-autoptimize/

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