The prevent_initial_call keyword argument for callbacks was added in Dash v1.12.0. Set this argument to True for all of your pattern matching callbacks (or any callbacks that don’t need to fire when the page loads) to prevent them all from sending requests to the server and waiting for responses at the same time.
Here’s an example of the prevent_initial_call keyword argument.
@app.callback(
Output({"type": "content_task", "id": MATCH}, "is_open"),
Input({"type": "form_task", "id": MATCH}, "is_open"),
prevent_initial_call=True
)
def update_content_task(form_is_open):
return not form_is_open