# Troubleshooting

This document contains typical troubleshooting questions and answers that you might run into while working with `fides.js`.

## FidesJS detected that it was already loaded on this page, aborting execution!
`fides.js` is only designed to be loaded once per page. While loading it more than once may work in some cases, the behavior is unsupported.

There are a number of common reasons that this might occur.

### Common Causes

#### Dynamic Script Tag Rendering
Often times during an implementation `fides.js` might be added to a website that uses dynamic script tag rendering (e.g. NextJS). In these situations we recommend that the correct settings from the framework in question are applied so that `fides.js` is only rendered once.

#### Fides Re-initialization
If you intend to re-initialize Fides the [recommended way of doing so](/content/docs/privacy-center-fidesjs/fidesjs/reference/interfaces/Fides#init/index.html) is to call `window.Fides.init()` again instead of removing and re-adding the script to the page.

### Suppressing the Error Message
If you decide that you need to continue to load Fides more than once you can suppress this error message by setting: `fides_unsupported_repeated_script_loading` to `enabled_acknowledge_not_supported`.

This can be done through the Privacy Center as documented in the [Privacy Center server settings](/content/docs/privacy-center-fidesjs/fidesjs/privacy-center-fidesjs-hosting#related-server-settings-for-get-fidesjs/index.html) or through the [FidesOptions](/content/docs/privacy-center-fidesjs/fidesjs/reference/interfaces/FidesOptions#fides_unsupported_repeated_script_loading/index.html).

### Side Effects
If you load `fides.js` multiple times, your consent settings will load as expected, however, you may see some unexpected event behavior.

If you are seeing many more Fides Events than you expect it is possible that you are loading `fides.js` more than once. You might be able to use [Chrome's getEventListeners function (opens in a new tab)](https://developer.chrome.com/docs/devtools/console/utilities#getEventListeners-function) to confirm this by checking the number of listeners configured for Fides Events.

[Privacy Center Hosting](/content/docs/privacy-center-fidesjs/fidesjs/privacy-center-fidesjs-hosting "Privacy Center Hosting"/index.html) [Mobile SDK](/content/docs/privacy-center-fidesjs/mobile-sdk "Mobile SDK"/index.html)
