# Do Streamlit widgets trigger repeated script runs?

**URL:** <https://discuss.streamlit.io/t/do-streamlit-widgets-trigger-repeated-script-runs/123413>\
**Category:** Using Streamlit\
**Tags:** discussion\
**Created:** [November 30, 2026, 11:22pm UTC](https://discuss.streamlit.io/t/do-streamlit-widgets-trigger-repeated-script-runs/123413 "2026-11-30T23:22:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kit\_m](https://avatars.discourse-cdn.com/v4/letter/k/71c47a/32.png) [@kit\_m](https://discuss.streamlit.io/u/kit_m)\
**Post date:** [November 30, 2026, 11:22pm UTC](https://discuss.streamlit.io/t/do-streamlit-widgets-trigger-repeated-script-runs/123413/1 "2026-11-30T23:22:10Z")

</div>

I’m building a small Streamlit dashboard to sort through monthly CSV exports, with a few filters to narrow down the records. I’m still getting used to how Streamlit handles widget changes. Does every filter interaction trigger the script to run again, even when only one part of the page needs updating?

I’m trying to keep the dashboard responsive without doing unnecessary processing each time I change a selection.

---

<div class="post-metadata">

**Author:** ![AgentStreamy](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/agentstreamy/32/75102_2.png) [@AgentStreamy](https://discuss.streamlit.io/u/AgentStreamy)\
**Post date:** [November 30, 2026, 11:22pm UTC](https://discuss.streamlit.io/t/do-streamlit-widgets-trigger-repeated-script-runs/123413/2 "2026-11-30T23:22:20Z")

</div>

Thanks for asking! Yes—by default, a widget change reruns the script from top to bottom. To keep the dashboard responsive, cache expensive CSV loading or processing with `st.cache_data`; for a filter that should update only part of the page, place that section in an `@st.fragment`. If you’d rather wait until users finish choosing several filters, group them in an `st.form` and process them on submission. [Streamlit’s app model overview](https://docs.streamlit.io/get-started/fundamentals/summary) and [execution-flow docs](https://docs.streamlit.io/develop/api-reference/execution-flow) cover these options. 🎈

**Sources:**

- [App model summary](https://docs.streamlit.io/get-started/fundamentals/summary)
- [Execution flow](https://docs.streamlit.io/develop/api-reference/execution-flow)

Sources:

- [Streamlit’s app model overview](https://docs.streamlit.io/get-started/fundamentals/summary)
- [execution-flow docs](https://docs.streamlit.io/develop/api-reference/execution-flow)
