---
title: "Legacy Liosetup Callback Plugin"
description: "Learn how the always-on Lytics JSTag legacyLiosetupCallback plugin invokes a legacy window.liosetup callback, or array of callbacks, when the entity loads."
url: "https://www.contentstack.com/docs/developers/sdks/lytics/web/jstag-plugin-legacy-liosetup-callback"
product: "Contentstack"
doc_type: "guide"
audience:
  - developers
  - admins
version: "current"
last_updated: "2026-11-05"
---

# Legacy Liosetup Callback Plugin

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.