Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

Commit

Permalink
Add ajaxTimeout parameter documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
3link committed Aug 31, 2023
1 parent b694ed2 commit 639681b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion CONFIGURATION_OPTIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@ Example:
}
```

### `ajaxTimeout` [Optional, HasDefault]
This configuration parameter sets the maximum duration of Ajax calls. By default, there is no timeout.

#### `identityResolutionConfig` [Optional, HasDefault]
LiveConnect module comes with a functionality to resolve all the identifiers set in the `identifiersToResolve`, additionally to the first party ones created by LiveConnect (in case `storageStrategy` is anything else than `none`, and an actual identifier has been stored).
This configuration setting consists of the following
Expand Down Expand Up @@ -158,7 +161,9 @@ sets the cookie expiration time to 4 hours, which means that in a given browser,

##### `identityResolutionConfig.ajaxTimeout` [Optional, HasDefault]
By default, 5000 milliseconds.
This configuration parameter sets the maximum duration of a call to the IdentityResolution endpoint, after which the callback passed to the `resolve` function will be invoked.
This configuration parameter sets the maximum duration of a call to the IdentityResolution endpoint, after which the callback passed to the `resolve` function will be invoked. If `identityResolutionConfig.ajaxTimeout` is not configured and the global `ajaxTimeout` is configured, the global setting is used. If none of the two is configured, the default of 5000ms is used.

Overwrites the global `ajaxTimeout`: if `identityResolutionConfig.ajaxTimeout` is configured, it is used, otherwise if `ajaxTimeout` is configured, it is used, else the default of 5000ms is used.
Example:
```javascript
{
Expand Down

0 comments on commit 639681b

Please sign in to comment.