Static Site Initialisation

This page describes how to initialise a Static site. If you’re unsure whether your site is static, see Static or Dynamic Initialisation?.

Summary

  1. Configure your ads.txt file.
  2. Include the fuse.js <script> in your page <head>.
  3. Edit the page HTML and insert Zone elements in the specified locations.
  4. Refresh the page in your browser. If no ads are showing, consult the troubleshooting guide.

Initialisation Process

Fuse will finalise the initialisation process once the following conditions are satisfied:

  • The CMP consent status has been determined, if CMP is enabled
  • Required 3rd-party scripts have downloaded and initialised
  • Document.readyState has reached ‘interactive’ or ‘complete’.

During the finalisation stage, Fuse executes all tasks pushed to fusetag.que

During the finalisation stage:

  1. Fuse executes all tasks pushed to fusetag.que
  2. The fusetag.que array is updated so that future functions added using the push function execute synchronously.

Once the tag is initialised:

  1. The DOM will be scanned for unregistered units.
  2. An auction will run, with all active Zones eligible for inclusion.

Post initialisation

Once the tag is initialised, any additional Zones added to the DOM must be registered manually using the Fusetag API.

In a static site, this should only happen in response to events such as a user opening a gallery, or a timer being reached.