adsenseLoader.js - Make AdSense correspond to responsive web design - OSS Daily

Daily Open Source News for IT Engineer and Designer

Breaking

Home Top Ad

Post Top Ad

Tuesday, October 3, 2017

adsenseLoader.js - Make AdSense correspond to responsive web design

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

Post Bottom Ad