How to stop Google ads from slowing down my website?

2k Views Asked by At

I am using the Google Chrome profiler to run a speed audit on my site.

It is complaining about a file show_ads_impl.js

I am not 100% sure where that is coming from? I took out AdSense from my page and now just have the Google AdWords retargeting being set. But I added the async tag to that script.

This is the page I am working on: here

And here is the screenshot of the profiler's complaint:

enter image description here

Also, the profiler suggests to use

<link rel="preload">

But where do I add that?

2

There are 2 best solutions below

0
On

You would add the link rel... to the head section of the page. One trick I use is to load the page, then the scripts on the page. I'm not sure where you currently have the scripts linked in your markup, but try linking them down at the bottom, just above the Body closing tag. The whole page loads, then the ads load - same time total, but the user won't notice.

...
...
<script type='text/javascript' src='googlyads.com/ads.js'>
</body>
0
On

If you're noticing that Google ads are slowing down your website, there are a few things you can do to help speed things up. First, make sure that you're using asynchronous loading for your ads. This means that the ads will load in the background while the rest of your website loads. You can also try using a cache plugin to cache your ads. This way, they'll be loaded from the cache instead of from the server every time a page is loaded. Finally, you can try using a content delivery network (CDN) to deliver your ads. A CDN can help to speed up the delivery of your ads by distributing them across multiple servers.