Legacy Liosetup Callback Plugin

View as Markdown
Last updated November 5, 2026

Legacy callback support for the liosetup global variable pattern

legacyLiosetupCallback plugin

Avoid using this legacy feature unless you know what you are doing and have a good reason.

Legacy Liosetup Callback
always on

examples

If you define an object like this on the window:

window.liosetup = {
  callback: entity => {/* elided */}
};

Exhibit: That callback will be invoked when the entity is loaded.

window.liosetup = {
  callback: [
    entity => {/* elided */},
    entity => {/* elided */}
  ]
};

Exhibit: Also entirely possible to pass an array, in which case we'll fan out.