> ## Documentation Index
> Fetch the complete documentation index at: https://docs.invoca.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Single Page App (SPA) Support

> Enable SPA support by disabling autoRun and manually triggering Invoca.PNAPI.run() whenever your dynamic content loads.

Invoca supports single page apps built with technologies like AngularJS or React, where content loads dynamically as a visitor interacts with the page. This lets Invoca detect when a number to replace is loaded or brought into view, and dynamically swap it for one of your Invoca numbers.

**Before you begin:** To deploy the Invoca Tag on your landing page for the first time, see [Deploying the Invoca Tag](/s/article/deploying-invoca-tag).

## Enabling SPA support

1. In the Custom Code block of your Invoca Tag, set:

```js theme={null}
options.autoRun = false
```

2. Trigger the `Invoca.PNAPI.run()` function once your dynamic content loads. This is typically done through a load event listener or a library render callback in your JavaScript.

For example, if you have a "Contact Us" widget containing a phone number that loads dynamically, trigger `Invoca.PNAPI.run()` once that widget is shown.

## Where to go next

* [The Invoca Tag for Dynamic Content Loading Pages and Single Page Applications](/s/article/tag-dynamic-content-spa)
* [Tag Wizard: Custom Code Settings](/s/article/tag-wizard-custom-code-settings)
