152
rated 0 times
[
153]
[
1]
/ answers: 1 / hits: 6673
/ 5 Years ago, tue, november 26, 2019, 12:00:00
Is there any way to run Google Ads code without block main thread? Google Pagespeed Insights shows me a warning Reduce the impact of third-party code: Third-party code blocked the main thread for ...
Third-Party Size Main-Thread Blocking Time
Google/Doubleclick Ads 193 KB 253 ms
I've placed a script to the end of the page in the footer.
<script data-ad-client=ca-pub-xxx async src=https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js></script>
I tried to add data-aload data-original=... but it doesn't help. Maybe it would a right choice to use requestAnimationFrame() or setTimeOut(), but I don't know how to implement it on this.
More From » javascript