I have four AdSense widgets on my website. I added the script below to each of the widgets on my theme panel:
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script>
(adsbygoogle = window.adsbygoogle || []).push({
google_ad_client: "my-pub-code",
enable_page_level_ads: true
});
</script>
Is this effective? Placing the same code to four widgets wouldn't make it slow? Do you have any recommendation to optimize faster ads loading time or my approach is standard?
I was wondering if <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
could be inserted in one place only to load faster.
Is this a good approach? Should I put it on index.php
?