# Why Your Screen Flickers Before Loading the Right Variants

If you’re noticing a flicker on your screen for a millisecond before the correct variant loads, it’s likely due to the Optibase script not being installed properly. This happens when the script isn’t placed in the correct location within your project.

## How to Fix the Flickering Issue:

1\. Check the Script Placement: Ensure that the Optibase script is added to the head code section of your project. This allows the script to load before the rest of the page content, preventing the flicker.

2\. Avoid Adding to the Footer: If the script is placed in the footer, it may load too late, causing a visible flicker as the variants are swapped.

You can update the script placement by going to your Webflow project settings and adding the Optibase script to the head section under Custom Code.<br>

If the issue persists after making these changes, feel free to reach out for additional assistance!


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.optibase.io/frequently-asked-questions/tests/why-your-screen-flickers-before-loading-the-right-variants.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
