Source: https://nishanth-fern-test.docs-staging.pageloop.ai/web/configure-wait-time

# Configure the wait time for a Flow on Standby pop-up

Wait time is the duration of time that the Whatfix algorithm takes to locate an element on a page. This time is important, especially on pages that take a while to load completely. If the wait time elapses and the element is still not found, a Flow on Standby pop-up is displayed.

### Application-specific default time

Wait time is application specific. It varies based on the application load time.

| Application load time | Wait time  |
| --------------------- | ---------- |
| Fast                  | 5 seconds  |
| Slow                  | 10 seconds |

Note:

Some applications might take longer to load the elements. In such cases, a Flow on Standby pop-up is displayed even if there are no changes in the elements. Whatfix recommends manually setting the wait time based on the application load time.

### Determine the wait time for a custom application

Use the following steps to determine the wait time for a custom application:

1. Open a page on your application, and then right click.
2. Click **Inspect**. ![DB\_Flow on standby\_inspect](/images/6b/DB_Flow-on-standby_inspect-6b9e721a.png)
3. Go to the **Console** tab. ![Db\_flow on standby\_console](/images/aa/Db_flow-on-standby_console-aa550188.png)
4. Refresh the page, and then run the following code in the console,

```plaintext
window.onload = function () {
    var loadTime = window.performance.timing.domContentLoadedEventEnd-window.performance.timing.navigationStart;
    console.log('Page load time is '+ loadTime);
}
```

Info

- Once the page is completely loaded, the load time is shown in milliseconds.
- Run the code on different pages of the application and record the load time.
- The wait time must be at least twice the highest load time.

### Configure the wait time

Wait time is the product of retry gap and step retries. **Wait time(milliseconds)= retry gap \* step retries** where, **retry gap** is the time interval between each time Whatfix searches for the element. **step retries** are the number of times Whatfix searches for the element.

To configure the retry gap and the step retry attempts for the pop-up to be displayed, add the following script in the **Advanced customization** section,

```plaintext
window._wfx_settings = window._wfx_settings || {};
window._wfx_settings.step_configurations = {
    "retry_gap_in_ms": 2000,
    "step_retries": 4
};
```

Note:

- Replace the values for **retry\_gap\_in\_ms** and **step\_retries** as required.
- In the mentioned code, Whatfix searches for the element 4 times with an interval of 2 seconds between each search.

your title goes here

The Flow on Standby pop-up does not appear after a wait time of 20 seconds, irrespective of the custom duration set.

## Related

- [Flow on Standby pop-up not appearing](/web/flow-on-standby-popup-not-appearing)
