Comment on page
Lazy loading enables to call ad units only when they are likely to be viewed.
This feature allows to optimize the loading speed while having an impact on the viewability and therefore the CPM of these ad units.
To activate this feature, you need to add the following code to
Settings are the following :
isActive: 1 or 0 depending on wether or not you want to activate the feature.
fetchRatio(optional) : defines the distance between the current viewport and the div containing the ad slot, at which the ad call will be triggered.
fetchRatio: 2means that the ad call will be triggered when the ad container is 2 viewports away from the current viewport. This is the recommended default value, it can be changed to suit your needs.
mobileFetchRatio(optional) : equivalent du
fetchRatiofor mobile devices.
If you want to exclude some ad units from this lazy loading strategy, you need to add this code to the relevant slots :