Nexx360 Documentation
  • Nexx360 solutions
  • Nexx360 account
    • Account creation
    • Account settings
      • Add and manage users
      • Configure bidders
      • Create blocklists
      • Implement throttling
  • General configuration
    • Introduction
    • Add and manage websites
    • Add and manage tagIds
    • Bid reductions
    • Cookie Sync script
    • Available bidders
  • Prebid Adapter
    • Introduction
    • Update Prebid with Nexx360 Adapter
    • Multiformat bids
  • VAST / CTV
    • Introduction
    • Create VAST Config
    • Build VAST ad tag
    • Connect the Google Ad Manager (GAM) account
    • Cookie Sync
    • Sample CTV Tag
  • Native
    • Introduction
    • Native Configs
    • GET
    • POST
    • Sample Response
  • Direct Call
    • Introduction
    • API Reference
    • Microsoft AST Example
    • Google Ad Manager Example
      • Connect the Google Ad Manager (GAM) account
  • AMP Nexx360
    • Introduction
    • Ad Server setup
    • Add rtc-config object to amp-ad units
  • OpenRTB
    • Introduction
    • Video Example
    • Mobile Example
    • Cookie Sync
  • Inapp
    • Introduction
    • Request Exemple
    • Google Ad Manager setup
  • API Management
    • Introduction
    • Connexion
    • Sites
      • Create a new site
      • Update site
      • Get Site
      • List Sites
    • TagIds (Stored requests)
      • Create a new tagId (stored request)
      • Update tagId (stored request)
      • Get tagId (Stored request)
      • List tagIds (Stored requests) by site
  • API Campaign
    • Introduction
    • Connexion
    • Orders
      • Create a new order
      • Update order
      • Get Order
      • List Orders
    • Line Items
      • Create a Line Item
      • Update Line Item
      • Get Line Item
      • List Line Items by Order
    • Creatives
      • Create a Creative
      • Update Creative
      • Get Creative
      • List Creatives by Line Items
  • Legacy - Direct call Nexx360
    • Introduction
    • Nexx Web features
      • Smart autorefresh
      • Incontent injection
        • Automated injection
        • Dynamic injection
      • Lazy Loading
      • Non-consent traffic monetisation
    • Integrate Nexx Web script on your site
      • Integration with GAM adserver
        • Nexx Web tag
        • Connect the Google Ad Manager (GAM) account
      • Integration with Xandr adserver
  • Nexx360 console
  • Nexx360 site
Powered by GitBook
On this page

Was this helpful?

  1. Legacy - Direct call Nexx360
  2. Nexx Web features

Lazy Loading

Lazy loading enables to call ad units only when they are likely to be viewed.

This feature allows to optimize the loading speed while impacting the viewability and consequently, the CPM of these ad units.

To activate this feature, you need to add the following code to n360Ad.setConfig :

n360Ad.setConfig({
    lazyLoading: {
        isActive: 1,
        fetchRatio: 2,
        mobileFetchRatio: 4,
        };
     });

Settings are as follows:

  • 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: 2 means 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 fetchRatio for 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 :.excludeFromLazyLoading()

Example : n360Ad.defineSlot('/your_GAM_network_ID/your_GAM_adunit',[[728,90],[970,250]],'div-2') .excludeFromLazyLoading();

PreviousDynamic injectionNextNon-consent traffic monetisation

Last updated 1 year ago

Was this helpful?