Many people use AdSense to increase the revenue of their website. As a disadvantage of such AdSense, there is a point that it is not responsive. There are many people who have to separate them for mobile and desktop, and feel troublesome operation.
I would like to use adsenseLoader.js there. AdSense will automatically become responsive if you add only this.
How to use adsenseLoader.js
Since it is lazy loading, it will be Loading at the beginning.
And the advertisement of the optimum size is displayed according to the screen width.
Advertisements will be reread accordingly as you narrow the width.
Even smartphone size will be displayed properly.
By including adsenseLoader.js, the optimal advertisement will be displayed regardless of the width of the browser. AdSense may cause scrolling to sound laterally, so it seems useful to put it in beforehand.
adsenseLoader.js is JavaScript open source software (MIT License).
No comments:
Post a Comment