Accelerate The Asynchronous Script Loading Blogs With Adsense


If you are a Google Adsense publisher and installing more than one script in your blog, sometimes loading the blog especially the appearance of the ad feels heavy and long. That's because, every ad unit did a load to perform perfectly.

Google Adsense itself already suggests every penayangnya to implement asynchronous ad code. But sometimes this important information dinafikkan by blogger, consequently the attached advertising even makes loading blog feels heavy. If this continues to be left, not unlikely you will be left readers, it means also lost income.

By default nowadays, Google Adsense has implemented asynchronous ad in scriptnya. Can be seen in the following figure.


It means that we don't have to put up the entire script on your blog or website. Quite a part of only utamaya in the URadsbygoogle.js script. The script URadsbygoogle.js is only installed on one of the ads and other ads simply display contents.

The following explanation scriptnya:



< async script src = "//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js" >
<!--hadad ~-->
&lt; ins class = "adsbygoogle"
style = "display: inline-block; width: 300px; height: 250px"
data-ad-client = "ca-pub-3465xxxxxxxxxxx"
data-ad-slot = "4113697973" &gt;
(adsbygoogle = adsbygoogle || window. []) push ({});


In the script above, red writings are asynchronous scripts. If you have set it up as a whole subjected to one section of your blog, another ad for the script, you can delete it. So the end result script posted ads in other parts such as the following:

!--hadad ~--&gt;
&lt; ins class = "adsbygoogle"
style = "display: inline-block; width: 300px; height: 250px"
data-ad-client = "ca-pub-3465xxxxxxxxxxx"
data-ad-slot = "4113697973" &gt;
(adsbygoogle = adsbygoogle || window. []) push ({});


With asynchronous techniques above, most likely loading of your blog will be a little faster (depending on tempalet as well). Loading will be a bit faster because adsense ads just read URadsbygoogle.js script once for all ad units. So if one is open, then the others are also open.

In this way it will give added value to your blog in the eyes of visitors. And the trick above, in no way violate the rules of Google Adsense, even highly recommended by them.

Happy Blogging ...

0 Response to "Accelerate The Asynchronous Script Loading Blogs With Adsense"

Post a Comment