# St.set_page_config does not directly display the website title I set?

Why after I set the website title with st.set_page_config, every time I open the app, “Streamlit” is still displayed first, and then the title I set is displayed? How can I directly display the title of the website I set when I open the website?

Hi @Bruce_Yin,

Can you share a code snippet so we can try to reproduce the issue?

st.set_page_config(
page_title="My First App",
page_icon="xxx.png",
}
)


I wrote it according to API reference.
My Streamlit version is 1.12.0

Hi @Bruce_Yin,

This is expected behavior. st.set_page_config is a Streamlit command that is executed when you run your app.

It takes a fraction of a second for your app to launch and execute st.set_page_config. In that fraction of a second, you will see “Streamlit” displayed in the browser tab, before the title defined in st.set_page_config takes effect.

If you would like the behavior to be different, one where “Streamlit” is not displayed right before your title is set, I’d encourage you to submit a feature request in the Streamlit repo.

Another (unofficial) option would be to manually modify your Streamlit installation. You’d need to find where Streamlit is installed on your machine, and edit the <title>Streamlit</title> in <path-to-streamlit-installation>/static/index.html.

For example, on my macOS installation, I open :

/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/streamlit/static/index.html


And manually edit the content within the <title> tags.

<!doctype html>
<html lang="en">

<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no" />
<link rel="shortcut icon" href="./favicon.png" />
<title>Streamlit</title>
<script src="./vendor/viz/viz-1.8.0.min.js" type="javascript/worker"></script>
<script src="./vendor/bokeh/bokeh-2.4.3.min.js"></script>
<script src="./vendor/bokeh/bokeh-widgets-2.4.3.min.js"></script>
<script src="./vendor/bokeh/bokeh-tables-2.4.3.min.js"></script>
<script src="./vendor/bokeh/bokeh-api-2.4.3.min.js"></script>
<script src="./vendor/bokeh/bokeh-gl-2.4.3.min.js"></script>
<script src="./vendor/bokeh/bokeh-mathjax-2.4.3.min.js"></script>